RouterMiddleWare class

Inheritance
  • Object
  • GetMiddleware
  • RouterMiddleWare

Constructors

RouterMiddleWare()

Properties

hashCode int
The hash code for this object.
no setterinherited
priority int?
The Order of the Middlewares to run.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onBindingsStart(List<Bindings>? bindings) List<Bindings>?
This function will be called right before the Bindings are initialize. Here you can change Bindings for this page {@tool snippet}
inherited
onPageBuildStart(GetPageBuilder? page) → GetPageBuilder?
This function will be called right after the Bindings are initialize.
inherited
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.
inherited
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}
inherited
onPageDispose() → void
inherited
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}
override
redirectDelegate(GetNavConfig route) Future<GetNavConfig?>
Similar to redirect, This function will be called when the router delegate changes the current route.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited