ForgotPasswordFlow class

The "forgot password" screen: asks the backend to send a reset code or link, then moves on as AuthCapabilities.resetMode says.

Inheritance

Constructors

ForgotPasswordFlow({required AuthProvider<dynamic, Object?> provider, required AuthNavigator navigator, required AuthFeedback feedback})

Properties

changes → Stream<AuthFormState>
Every new state, delivered right away (synchronously).
no setterinherited
feedback → AuthFeedback
For subclasses: the alerts.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
isDisposed → bool
no setterinherited
provider → AuthProvider<dynamic, Object?>
For subclasses: the backend.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → AuthFormState
no setterinherited

Methods

dispose() → Future<void>
Stops all listeners. Call it when the screen that owns the flow closes.
inherited
emit(AuthFormState state) → void
Sets a new state. For subclasses only; ignored after dispose.
inherited
mapError(Object error, StackTrace stackTrace) → Failure
Turns a thrown error into a Failure (the backend adapter's mapping).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(Future<void> action()) → Future<void>
Runs action unless one is already running (double tap) or the flow is disposed. Errors thrown by action go through mapError to AuthFeedback.failure.
inherited
submit({required String identifier}) → Future<void>
Sends the reset code or link for identifier (trimmed).
toString() → String
A string representation of this object.
inherited

Operators

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