void clear()

Removes all elements in the set.

Source

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