Route<T extends StateObject> class

default route

Properties

hashCode int
The hash code for this object.
no setterinherited
hasWildCard bool
no setter
isActive bool
no setter
maxLength int
latefinal
minLength int
latefinal
onActivate bool Function(Url<T> url)
the operation being called upon receiving an url / open navigation (internally and back-button)
final
representation String
used to ensure toString() override
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segments List<_SegmentTemplate>
final
templateIdentity int
latefinal
title String
the title of a web page
final
wildcard ↔ _WildcardSegmentTemplate?
latefinal

Methods

deserializeState(Map? map) → T?
for instantiating state objects
inferArguments({required List<_Segment> from}) List<String>
inferParameters({required List<_Segment> from}) Map<String, String>
infers key value pairs from url paths; checks if numbers of values to infer is lower than the length of from
activate a route and push a new state to the browser history using Router._pushState / HashRouter._pushState method to determine the appropriate url
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toUrl({Map<String, String> params = const {}, Map<String, String> query = const {}, List<String> args = const [], T? userState}) Url<T>
integrate key value pairs into url path and create Url object

Operators

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