Param<T extends Base> class
Used to define a route path that requires a parameter
eg. /user/:id
Constructors
- Param(String path, String param, {Base? parent})
- Used to define a route path that requires a parameter
- Param.only(String param, {required Base parent})
- To be used to support nested routes of paths that require a parameter immediately after the parent
Properties
- goRoute → String
-
the path to be used for
GoRoute.path
no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
the key (id) provided for the
_param
no setter - path → String
-
the path used to navigate to the route
associated with this path
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
define(
String value) → T -
defines the parameter for this path's
Param._param
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query(
Map< String, String> queryParameters) → T -
adds a query to the path
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited