RecordingAuthNavigator class

Navigator that only records where the flows went, for tests.

Inheritance

Constructors

RecordingAuthNavigator()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
visits → List<String>
One entry per call, e.g. home, login, login:a@b.com, otp:signup:a@b.com, forgot, back.
final

Methods

back() → Future<void>
Closes the current screen (e.g. change password after saving).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toForgotPassword() → Future<void>
Back to the forgot password screen (wrong email on the reset screen).
override
toHome() → Future<void>
The first screen after a successful login. Replaces the auth screens.
override
toLogin({String? identifier}) → Future<void>
Login, replacing every screen before it (after logout, reset, verify). identifier fills the login form when given (e.g. after a reset).
override
toOtp({required String identifier, required OtpPurpose purpose}) → Future<void>
The code screen for identifier.
override
toResetPassword({required String identifier}) → Future<void>
The new password screen, used when ResetMode.otp is on.
override
toSignup() → Future<void>
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited