AccountVerificationGuard class
Constructors
-
AccountVerificationGuard({Logger? logger, void onFailure(StackRouter router, Failure failure)?, required void onNotVerified(StackRouter router), Future<bool> bypass(RouteMatch route, StackRouter router)?, required AuthenticationBasicBloc authBloc})
-
Properties
-
authBloc
→ AuthenticationBasicBloc
-
final
-
bypass
→ Future<bool> Function(RouteMatch route, StackRouter router)?
-
This let's you define a function to be called to determine if the guard should
be bypassed , useful for some reason this guard protect a parent route of your redirected route
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
logger
→ Logger
-
final
-
onFailure
→ void Function(StackRouter router, Failure failure)?
-
This callback is called when the system failed to fetch user info and
there is no user information stored in the
AuthenticationBasicBloc state
final
-
onNotVerified
→ void Function(StackRouter router)
-
Callback called when the user is detected as not verifiedLocale
a
StackRouter class is passed so you can redirect the user as you need
final
-
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
-
onNavigation(NavigationResolver resolver, StackRouter router)
→ void
-
clients will call
resolver.next(true --> default) to continue
navigation or resolver.next(false) to abort navigation
example
-
toString()
→ String
-
A string representation of this object.
inherited