clear method Null safety

void clear()
inherited

Removes all elements from the set.

Implementation

void clear() {
  // TODO(sra): Do this without reading the classes.
  modify((s) => s.clear());
}