dispose method
- @mustCallSuper
use to listen when the controller was deleted from memory
Implementation
@mustCallSuper
void dispose() async {
_debugAssertNotDisposed();
_disposed = true;
// ignore: unawaited_futures
_controller?.close();
if (_isBusy != null) {
await _isBusy!.future;
}
_listeners!.clear();
_listeners = null;
}