clear method

void clear()

Implementation

void clear() {
  subs.forEach((element) => element.invalidate());
  subs.clear();
}