dispose method

void dispose()

Disposes the observable by clearing all listeners.

Implementation

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