RouteMatch class

An matched result by matching a RouteBase against a location.

This is typically created by calling RouteMatch.match.

Implementers
Annotations

Constructors

RouteMatch({required RouteBase route, required String matchedLocation, required ValueKey<String> pageKey})
Constructor for RouteMatch.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
matchedLocation String
The location string that matches the route.
final
pageKey ValueKey<String>
Value key of type string, to hold a unique reference to a page.
final
route RouteBase
The matched route.
final
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

match({required RouteBase route, required String remainingLocation, required String matchedLocation, required Map<String, String> pathParameters}) RouteMatch?
Generate a RouteMatch object by matching the route with remainingLocation.