GetMiddleware class abstract
The Page Middlewares. The Functions will be called in this order (( redirect -> onPageCalled -> onBindingsStart -> onPageBuildStart -> onPageBuilt -> onPageDispose ))
Constructors
- GetMiddleware({int priority = 0})
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onBindingsStart<
R> (List< R> ? bindings) → List<R> ? - This function will be called right before the BindingsInterface are initialize. Here you can change BindingsInterface for this page {@tool snippet}
-
onPageBuildStart(
GetPageBuilder? page) → GetPageBuilder? - This function will be called right after the BindingsInterface are initialize.
-
onPageBuilt(
Widget page) → Widget - This function will be called right after the GetPage.page function is called and will give you the result of the function. and take the widget that will be showed.
-
onPageCalled(
GetPage? page) → GetPage? - This function will be called when this Page is called you can use it to change something about the page or give it new page {@tool snippet}
-
onPageDispose(
) → void -
redirect(
String? route) → RouteSettings? - This function will be called when the page of the called route is being searched for. It take RouteSettings as a result an redirect to the new settings or give it null and there will be no redirecting. {@tool snippet}
-
redirectDelegate(
RouteDecoder route) → FutureOr< RouteDecoder?> - Similar to redirect, This function will be called when the router delegate changes the current route.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited