GuardRedirect class final

A GuardResult that requests navigation redirection.

Inheritance

Constructors

GuardRedirect(String pathOrName, {Map<String, String>? params, URLSearchParams? query, Object? state})
Creates a redirect result.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
params Map<String, String>?
Params used when pathOrName resolves as a route name.
final
pathOrName String
Route name or absolute path used as the redirect target.
final
query URLSearchParams?
Query values that override same-name keys on collision.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state Object?
Navigation state forwarded to the redirected destination.
final

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.
inherited