RouteMode enum
Notes: Karee provides different ways to navigate between screens. RouteMode helps you to set what kind of navigation policy you want.
RouteMode.REPLACE : If you want to pop the current context and add new one without making two calls KareeRouter.goBack and KareeRouter.goto.
RouteMode.PUSH : Used to add a new navigation context on last one.
RouteMode.INTERNAL : Used to indicate to KareeRouter that the current route should be sent to a Routable Widget inside the Flutter tree.
RouteMode.EMPTY : Meaning that you want to clean navigation before adding current path. Assume that your current navigation path is /settings/user/profile and you want to go back /home, to avoid to remove one by one and push new path, you can use RouteMode.EMPTY.
Values
- REPLACE → const RouteMode
-
RouteMode.REPLACE: If you want to pop current context and add new one without making two calls KareeRouter.goBack and KareeRouter.goto.
- PUSH → const RouteMode
-
RouteMode.PUSH: Used to a add new navigation context on last one.
- EMPTY → const RouteMode
-
RouteMode.EMPTY. Meaning that you want to clean navigation before adding current path. Assume that your current navigation path is /settings/user/profile and you want to go back /home, to avoid to remove one by one and push new path, you can use RouteMode.EMPTY.
- INTERNAL → const RouteMode
-
RouteMode.INTERNAL: Used to indicate to KareeRouter that the current route should be sent to a Routable Widget inside the Flutter tree.
- NONE → const RouteMode
-
RouteMode.NONE: Used to indicate to KareeRouter that the current route should be sent to a Routable Widget inside the flutter tree.
See INTERNAL
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited