onWillPop property
final
Enables the form to veto attempts by the user to dismiss the ModalRoute that contains the form.
If the callback returns a Future that resolves to false, the form's route will not be popped.
See also:
- WillPopScope, another widget that provides a way to intercept the back button.
Implementation
final WillPopCallback onWillPop