clear method Null safety

void clear()

Clear all subscribers from the cache.

Implementation

void clear() {
  _listeners.clear();
}