dispose method

  1. @override
void dispose()
override

Implementation

@override
void dispose() {
  _listeners.clear();

  final reversed = _onDispose.reversed.toList();
  _onDispose.clear();
  for (final onDispose in reversed) {
    onDispose();
  }
}