Navigation class

Represents a navigation (route + parameters).

Available Extensions

Constructors

Properties

hashCode int
The hash code for this object.
no setterinherited
isValid bool
no setter
parameters Map<String, String>?
The route parameters.
final
route String
The route ID/name.
final
routeAndParameters String
Returns the route followed by ? and the parameters encoded. See encodeRouteAndParameters.
no setter
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
parameter(String key, [String? def]) String?
parameterAsBool(String key, [bool? def]) bool?
parameterAsBoolList(String key, [List<bool>? def]) List<bool>?
parameterAsInt(String key, [int? def]) int?
parameterAsIntList(String key, [List<int>? def]) List<int>?
parameterAsNum(String key, [num? def]) num?
parameterAsNumList(String key, [List<num>? def]) List<num>?
parameterAsStringList(String key, [List<String>? def]) List<String>?
toString() String
A string representation of this object.
override

Operators

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

Static Methods

encodeParameters(Map<String, String> parameters) String
Encodes parameters in a Query String.
encodeRouteAndParameters(String route, Map<String, String>? parameters) String
Returns the route followed by ? and the parameters encoded.