Context class
Request New Route with use this Context
at navigate to time. path navigate path. body navigate request params. pathParams if has path params, use it view get value such as /user/:id pathParams.getInt('id',0) queryParams if has query params, isDirectly enter the url open.
Constructors
- Context(String path, {bool isDirectly = false, dynamic body, DateTime? at})
- Context.fromJson(dynamic map)
-
factory
Properties
- at → DateTime
-
final
- body ↔ dynamic
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDirectly → bool
-
final
- path → String
-
final
- pathParams → PathParams
-
final
-
pathSegments
→ List<
String> -
no setter
- queryParams → QueryParams
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → Uri
-
no setter
Methods
-
execute(
NavigatorRoute route) → Future -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited