WillPopCallback typedef

Future<bool> WillPopCallback ()

Signature for a callback that verifies that it's OK to call Navigator.pop.

Used by Form.onWillPop, ModalRoute.addScopedWillPopCallback, ModalRoute.removeScopedWillPopCallback, and WillPopScope.

Implementation

typedef WillPopCallback = Future<bool> Function();