AuthRoutePath class final

A framework-neutral auth route using canonical {parameter} segments.

Constructors

AuthRoutePath(String template, {List<AuthRouteParameterKey> parameters = const <AuthRouteParameterKey>[]})
Creates a route template with its declared placeholder parameters.
const

Properties

collisionShape → String
Route shape used to detect collisions independent of parameter names.
no setter
hashCode → int
The hash code for this object.
no setterinherited
parameters → List<AuthRouteParameterKey>
Typed keys corresponding exactly to placeholders in template.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
template → String
Canonical route template, such as /users/{userId}.
final

Methods

bind(Map<String, Object?> values) → Map<AuthRouteParameterKey, String>
Converts framework route parameters into their declared typed keys.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(Map<AuthRouteParameterKey, String> values) → String
Resolves this route with an exact set of typed parameters.
toString() → String
A string representation of this object.
override
validate() → String
Validates this route and returns its canonical template.

Operators

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