backButtonBehavior property

BackButtonBehavior backButtonBehavior
final

Whether the back button pressed should pop the current route and switch to the previous route, defaults to true. if false, the back button will trigger app exit. This is applicable only for Android's back button.

Implementation

final BackButtonBehavior backButtonBehavior;