clear method
override
Removes all elements from the set.
final characters = <String>{'A', 'B', 'C'};
characters.clear(); // {}
Implementation
void clear() {
removeAll(toList());
}
Removes all elements from the set.
final characters = <String>{'A', 'B', 'C'};
characters.clear(); // {}
void clear() {
removeAll(toList());
}