onWillPop property Null safety
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.
- WillPopScope, another widget that provides a way to intercept the back button.
final WillPopCallback? onWillPop;