onDispose method

  1. @override
Future<Null> onDispose ()
override

Callback to allow arbitrary cleanup on dispose.

Implementation

@override
Future<Null> onDispose() async {
  _listeners.clear();
}