RoutePolicy class
Defines a comprehensive policy for route behavior.
Use RoutePolicy to group behavioral configuration like authorization, duplication handling, and presentation style.
Constructors
- RoutePolicy({bool? mustBeAuthorized, DuplicateRouteBehavior? duplicateBehavior, bool? pushGlobally, bool? isPopupRoute})
-
Creates a route policy.
const
Properties
- duplicateBehavior → DuplicateRouteBehavior?
-
How to handle duplicate navigation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPopupRoute → bool?
-
Whether this is a popup route.
final
- mustBeAuthorized → bool?
-
Whether authentication is required.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- pushGlobally → bool?
-
Whether to push to the root navigator.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.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.
inherited