WillPopCallback typedef Null safety

WillPopCallback = Future<bool> Function()

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();