RouteState class

Immutable URI information for one navigation attempt.

Constructors

RouteState(Uri uri, {Map<String, String>? uriParams, Object? arguments})

Properties

arguments → Object?
Application-owned payload. Its contents are not deep-copied.
final
fragment → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
path → String
no setter
queryParams → Map<String, String>
Single-value query view; use queryParamsAll for repeated keys.
final
queryParamsAll → Map<String, List<String>>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uri → Uri
Full URI, including authority when supplied by an external link.
final
uriParams → Map<String, String>?
Decoded parameters, or null when no definition matched.
final

Methods

argumentsAs<T>() → T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pathInt(String name) → int
queryBool(String name) → bool?
Exactly true or false; null when missing. All other values, including empty and repeated values, throw FormatException.
queryInt(String name) → int?
A signed decimal integer; null when missing. Empty, malformed and repeated values throw FormatException. Hexadecimal and whitespace are not accepted.
queryValues(String name) → List<String>
All decoded values in URI order. Missing keys return an empty list. The returned list is immutable.
requirePathParameter(String name) → String
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited