A mixin providing functions for updating user information.
The functions are used in the AuthService class. You can call functions from this mixin as follows:
ref.read(authServiceProvider).updateEmail(password, newEmail);
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- instance ↔ FirebaseAuth
-
latefinal
- 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
-
reauthenticate(
{required String email, required String password}) → Future< AuthResultStatus?> - Reauthenticate a user using EmailAuthProvider
-
sendPasswordResetLink(
{required String email}) → Future< AuthResultStatus> -
Sends a password reset link to the user associated with
email. -
sendVerificationMail(
) → Future< void> - Sends a verification email to the user.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateEmail(
{required String password, required String? newEmail}) → Future< AuthResultStatus?> -
Update the user's email to
newEmailafter reauthentication withpassword. -
updatePhotoUrl(
String url) → Future< void> -
Update the user's profile photo to
url.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited