onBackButtonPressed property

VoidCallback? onBackButtonPressed
final

Called when the back button is pressed.

If this is null, the back button will call Navigator.maybePop.

Implementation

final VoidCallback? onBackButtonPressed;