clear method

void clear()

Clears the entire set.

final s = Ref({1,2,3});
s.clear(); // -> {}

Implementation

void clear() {
  $.clear();
  notifyChange();
}