HyperRoute<T extends RouteValue> class
abstract
- Implementers
Constructors
-
HyperRoute({List<
HyperRoute< children = const []})RouteValue> >
Properties
-
children
→ List<
HyperRoute< RouteValue> > -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Object
-
Same as RouteValue.key
no setter
-
parent
↔ HyperRoute<
RouteValue> ? -
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createFromUrl(
UrlData url) → RouteNode< RouteValue> ? - Receives a list of url segments and returns the stack parsed from them. The first segment in the list is matched against this route. If it does not correspond to this route, returns null.
-
createNode(
{RouteNode< RouteValue> ? next, T? value}) → RouteNode<RouteValue> -
createStack(
{RouteNode< RouteValue> ? next, required Map<Object, RouteValue> values}) → RouteNode<RouteValue> ? - Creates a stack of RouteNodes from this route to the root.
-
forEach(
void action(HyperRoute< RouteValue> r)) → void -
nextNodeFromUrl(
UrlData url) → RouteNode< RouteValue> ? - Finds a route that matches the url among its children and returns a stack created from it.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateWithNext(
{RouteNode< RouteValue> ? next, required T value}) → RouteNode<RouteValue> -
Prioritizes
next
overvalue
. -
updateWithValue(
{RouteNode< RouteValue> ? next, required T value}) → RouteNode<RouteValue> -
Prioritizes
value
overnext
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
matchUrl(
{required UrlData url, required List< HyperRoute< routes}) → RouteNode<RouteValue> >RouteValue> ? - Finds a route that matches the url and creates a stack from it.