RouteGuard class abstract
Class interface
- Implementers
Constructors
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
-
canOpen(
BuildContext? context, NyArgument? data) → Future< bool> -
Return true if the User can access this page and false if they can't.
canOpen will contain the
context
and any arguments passed from the last route. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
redirectTo(
BuildContext? context, NyArgument? data) → Future< void> - This method is called after the canOpen returns false. Provide an action that should occur. E.g. routeTo('login');
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited