AuthRouter class final
Returns a router that handles authentication.
Constructors
-
AuthRouter.new({required String initialLocation, required Navigable authRoute, required List<
RouteBase> publicRoutes, required List<RouteBase> privateRoutes})
Properties
- config → GoRouter
-
Creates an instance of the
GoRouter
class to handle unauthenticated and authenticated routes, and sets its as the root navigator router.no setter - 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