onBackButtonPressed property
This callback is invoked, when the user taps the back button on Android. Defines whether it is the root Navigator or not if the method returns true then the Navigator is at the base of the navigator stack
Implementation
final bool Function(bool)? onBackButtonPressed;