handleAndroidBackButtonPress property
Handles android back button actions. Defaults to true
.
Action based on scenarios:
- If the you are on the first tab with all screens popped of the given tab, the app will close if
handleAndroidBackButtonPress
is set tofalse
. IfhandleAndroidBackButtonPress
is set to true, nothing will happen. - If you are on another tab with all screens popped of that given tab, you will be switched to first tab.
- If there are screens pushed on the selected tab, a screen will pop on a respective back button press.
Implementation
@override
final bool handleAndroidBackButtonPress;