KareeRouter class

KareeRouter: To navigate between screens you may use KareeRouter that offers you two ways to go forward and to go back. KareeRouter provides also a way to consume routes between your application modules.

KareeRouter.goto( routeName, parameter )

routeName It is the same path or event defined in the Routes.dart of your module. parameter It is the arguments list that should be injected in your Route action.

KareeRouter.goBack( context )

Constructors

KareeRouter()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Properties

currentContext BuildContext?
getter/setter pair
currentRoute String?
no setter
getRouter → dynamic
General router for the application. Overloaded by Karee to override default navigator.
no setter
no setter
pathVariables Map<String, String>?
no setter
screenName String?
getter/setter pair

Static Methods

appRoute(RouteSettings settings) Route
componentForRouteName(String s) Widget
This function returns the screen view from its name.
findActionFor(String ro) → _RouteEntry?
Function used to get the specific action from a path route.
goBack() → dynamic
Implementation of navigator to goback to previous context.
goto(String routeName, {dynamic parameter}) → dynamic
initialScreen() Widget
Function used to find initial screen for /. Screen selected should set isInitial to true
router(BuildContext context) → dynamic
Default Karee Router.