WillPopCallback typedef

  1. @Deprecated('Use PopInvokedCallback instead. ' 'This feature was deprecated after v3.12.0-1.0.pre.')
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

@Deprecated(
  'Use PopInvokedCallback instead. '
  'This feature was deprecated after v3.12.0-1.0.pre.',
)
typedef WillPopCallback = Future<bool> Function();