UrlState class

Annotations

Constructors

UrlState(Uri uri, List<RouteMatch> segments, {bool shouldReplace = false})
const
UrlState.fromSegments(List<RouteMatch> routes, {bool shouldReplace = false})
factory

Properties

currentHierarchy → RouteMatch
no setter
flatten → UrlState
no setter
hashCode → int
The hash code for this object.
no setteroverride
hasSegments → bool
no setter
path → String
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segments → List<RouteMatch>
final
shouldReplace → bool
final
topMatch → RouteMatch?
no setter
uri → Uri
final
url → String
no setter

Methods

childrenOfSegmentNamed(String routeName) → List<RouteMatch>
copyWith({List<RouteMatch>? segments, Uri? uri, bool? replace}) → UrlState
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

toHierarchy(List<RouteMatch> segments) → RouteMatch