DVPagePolicy class

Answers whether this caller may open a route, for the generated router.

Properties

hashCode → int
The hash code for this object.
no setterinherited
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.
inherited

Static Properties

decide ↔ Future<bool> Function(String policy, String location)?
What decides. Set by the generated bootstrap from the application's own auth, and left null in tests and in applications that have none.
getter/setter pair

Static Methods

check(Object? context, Object? state, String policy) → Future<String?>
The route to redirect to, or null to let the page render.