onWillDispose method

  1. @protected
Future<Null> onWillDispose()
inherited

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

@protected
Future<Null> onWillDispose() async {
  return null;
}