back_button_interceptor
library
Classes
-
BackButtonInterceptor
-
When you need to intercept the Android back-button, you usually add
WillPopScope
to your
widget tree. However, under some use cases, specially when developing stateful widgets that
interact with the back button, it's more convenient to use the BackButtonInterceptor
.
-
InterceptorResult
-
-
InterceptorResults
-
-
RouteInfo
-
Your functions can also process information about routes by using the function's RouteInfo info
parameter. To get the current route in the navigator, call
info.currentRoute(context)
.
Also, info.routeWhenAdded
contains the route that was the current one when the interceptor
was added through the BackButtonInterceptor.add()
method.