clear method

void clear ()
override

Removes all elements in the set.

Implementation

void clear() {
  removeAll(toList());
}