dispose method

  1. @mustCallSuper
void dispose()

Implementation

@mustCallSuper
void dispose() {
  if (kFlutterMemoryAllocationsEnabled) {
    FlutterMemoryAllocations.instance.dispatchObjectDisposed(object: this);
  }

  _listeners.clear();
  _strreamController?.close();
}