MockUser class Null safety

Implemented types
Mixed in types

Constructors

MockUser({bool isAnonymous = false, bool isEmailVerified = true, String? uid, String? email, String? displayName, String? phoneNumber, String? photoURL, List<UserInfo>? providerData, String? refreshToken, UserMetadata? metadata, IdTokenResult? idTokenResult, DateTime? idTokenAuthTime, DateTime? idTokenExp, Map<String, dynamic>? customClaim})

Properties

displayName String?
The users display name.
read / writeoverride-getter
email String?
The users email address.
read-onlyoverride
emailVerified bool
Returns whether the users email address has been verified.
read-onlyoverride
exception FirebaseAuthException
Sets a FirebaseAuthException
write-only
hashCode int
The hash code for this object.
read-onlyinherited
isAnonymous bool
Returns whether the user is a anonymous.
read-onlyoverride
metadata UserMetadata
Returns additional metadata about the user, such as their creation time.
read-onlyoverride
multiFactor MultiFactor
read-onlyinherited
phoneNumber String?
Returns the users phone number.
read-onlyoverride
photoURL String?
Returns a photo URL for the user.
read-onlyoverride
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
read-onlyoverride
providerData List<UserInfo>
Returns a list of user information for each linked provider.
read-onlyoverride
refreshToken String?
Returns a JWT refresh token for the user.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
read-onlyinherited
tenantId String?
The current user's tenant ID.
read-onlyinherited
uid String
The user's unique ID.
read-onlyoverride

Methods

copyWith({bool? isAnonymous, bool? isEmailVerified, String? uid, String? email, String? displayName, String? phoneNumber, String? photoURL, List<UserInfo>? providerData, String? refreshToken, UserMetadata? metadata, IdTokenResult? idTokenResult, DateTime? idTokenAuthTime, DateTime? idTokenExp, Map<String, dynamic>? customClaim}) MockUser
delete() Future<void>
Deletes and signs out the user.
override
getIdToken([bool forceRefresh = false]) Future<String>
Returns a JSON Web Token (JWT) used to identify the user to a Firebase service.
override
getIdTokenResult([bool forceRefresh = false]) Future<IdTokenResult>
Returns a IdTokenResult containing the users JSON Web Token (JWT) and other metadata.
override
linkWithCredential(AuthCredential credential) Future<UserCredential>
Links the user account with the given credentials.
override
linkWithPhoneNumber(String phoneNumber, [RecaptchaVerifier? verifier]) Future<ConfirmationResult>
Links the user account with the given phone number.
inherited
linkWithPopup(AuthProvider provider) Future<UserCredential>
Links the user account with the given provider.
inherited
linkWithProvider(AuthProvider provider) Future<UserCredential>
Links with an AuthProvider using native authentication flow. On web, you should use linkWithPopup or linkWithRedirect instead.
inherited
linkWithRedirect(AuthProvider provider) Future<void>
Links the user account with the given provider.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
override
reauthenticateWithCredential(AuthCredential? credential) Future<UserCredential>
Re-authenticates a user using a fresh credential.
override
reauthenticateWithPopup(AuthProvider provider) Future<UserCredential>
Re-authenticates a user using a popup on Web.
inherited
reauthenticateWithProvider(AuthProvider provider) Future<UserCredential>
Re-authenticates a user using a Provider.
inherited
reauthenticateWithRedirect(AuthProvider provider) Future<void>
Re-authenticates a user using a redirection on Web.
inherited
reload() Future<void>
Refreshes the current user, if signed in.
override
sendEmailVerification([ActionCodeSettings? actionCodeSettings]) Future<void>
Sends a verification email to a user.
override
toString() String
A string representation of this object.
inherited
Unlinks a provider from a user account.
inherited
updateDisplayName(String? value) Future<void>
Update the user name.
override
updateEmail(String newEmail) Future<void>
Updates the user's email address.
inherited
updatePassword(String newPassword) Future<void>
Updates the user's password.
override
updatePhoneNumber(PhoneAuthCredential phoneCredential) Future<void>
Updates the user's phone number.
inherited
updatePhotoURL(String? photoURL) Future<void>
Update the user's profile picture.
inherited
updateProfile({String? displayName, String? photoURL}) Future<void>
Updates a user's profile data.
@Deprecated('Will be removed in version 2.0.0. ' 'Use updatePhotoURL and updateDisplayName instead.')inherited
verifyBeforeUpdateEmail(String newEmail, [ActionCodeSettings? actionCodeSettings]) Future<void>
Sends a verification email to a new email address. The user's email will be updated to the new one after being verified.
inherited

Operators

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