OkitoRouting mixin
This is actually the most important mixin of Okito class. It handles all the routing and it has the navigatorKey property.
We have to override navigatorKey because as you know, mixins can't be instantiated.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
The
NavigatorState
of the app. You can use this to provide data to your material app.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
canPop(
) → bool? - Equals to Navigator.of(context).canPop()
-
maybePop<
T> ([T? arguments]) → Future< bool?> - Equals to Navigator.of(context).maybePop()
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pop<
T> ({T? result}) → void - Equals to Navigator.of(context).pop()
-
popUntil(
String route) → void - Equals to Navigator.of(context).popUntil()
-
push<
T> (Route< T> route) → Future<T?> - Equals to Navigator.of(context).push() Give it the Route you want to push
-
pushAndRemoveUntil<
T> (Route< T> route, {bool predicate(Route)?}) → Future<T?> -
Equals to Navigator.of(context).pushAndRemoveUntil()
Just give it the
route
you want to push -
pushEasy<
T> (Widget page) → Future< T?> -
Similar to Navigator.of(context).push()
Just give it the
page
you want to push -
pushEasyAndRemoveUntil<
T> (Widget page, {bool predicate(Route)?}) → Future< T?> -
Easier way of Navigator.of(context).pushAndRemoveUntil()
Just give it the
page
you want to push -
pushNamed<
T> (String routeName, {Object? arguments}) → Future< T?> -
Equals to Navigator.of(context).push()
Just give it the
routeName
you want to push -
pushNamedAndRemoveUntil<
T> (String routeName, {Object? arguments, bool predicate(Route)?}) → Future< T?> -
Equals to Navigator.of(context).pushNamedAndRemoveUntil()
Just give it the
routeName
you want to push -
pushReplacement<
T, X> (Route< T> route, {X? result}) → Future<T?> -
Equals to Navigator.of(context).pushReplacement()
Just give it the
route
you want to push -
pushReplacementEasy<
T, X> (Widget page, {X? result}) → Future< T?> -
Similar to Navigator.of(context).pushReplacement()
Just give it the
page
you want to push -
pushReplacementNamed<
T, X> (String routeName, {Object? arguments}) → Future< T?> -
Equals to Navigator.of(context).pushReplacementNamed()
Just give it the
routeName
you want to push -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited