GetMiddleware class Null safety

The Page Middlewares. The Functions will be called in this order (( redirect -> onPageCalled -> onBindingsStart -> onPageBuildStart -> onPageBuilt -> onPageDispose ))

Constructors

GetMiddleware({int? priority})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
priority int?
The Order of the Middlewares to run. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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} [...]
onPageBuildStart(GetPageBuilder? page) GetPageBuilder?
This function will be called right after the Bindings 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(GetNavConfig route) Future<GetNavConfig?>
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