onWillDispose method
Callback to allow arbitrary cleanup as soon as disposal is requested (i.e. dispose is called) but prior to disposal actually starting.
Disposal will not start before the Future returned from this method completes.
Implementation
@override
@protected
Future<Null> onWillDispose() async {
return null;
}