dispose method

  1. @override
void dispose()
override

Disposes the resource.

Implementation

@override
void dispose() {
  _isClosed = true;
  _hasStopped = true;
  _observers.clear();
}