clear method

void clear()
inherited

Removes all elements from the set.

final characters = <String>{'A', 'B', 'C'};
characters.clear(); // {}

Implementation

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