KareeRouter class
KareeRouter
: To navigate between screens you may use KareeRouter that offers you two ways to go forward and to go back
KareeRouter.goto( routeName, parameter )
routeName
it is the same path or event defined in the Routes.dart file
parameter
it is the arguments list that should be injected in your Route action
KareeRouter.goBack( context )
Constructors
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
- getRouter → dynamic
-
General router for application. Overload by Karee to override default navigator
no setter
-
final
Static Methods
-
appRoute(
RouteSettings settings) → Route -
componentForRouteName(
String s) → Widget - This function return the screen view from its name
-
goBack(
[BuildContext? context]) → 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 totrue
-
router(
BuildContext context) → dynamic - Default Karee Router