RouteGuard class abstract
RouteGuard implements Middleware and adds guard behavior, authorizing or not the route via the canActivate() method;
Constructors
- RouteGuard({String? redirectTo})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- redirectTo → String?
-
If the route is not allowed then the Guard will redirect to that route.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
canActivate(
String path, ParallelRoute route) → FutureOr< bool> - Returns a FutureOr
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pos(
ModularRoute route, ModularArguments data) → FutureOr< ParallelRoute?> - Method called as soon as route is found and after settings.
-
pre(
ModularRoute route) → FutureOr< ModularRoute?> - Method called as soon as route is found and before settings.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited