MockUser class

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

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
getIdTokenResultSync() → IdTokenResult
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.
override
linkWithRedirect(AuthProvider provider) Future<void>
Links the user account with the given provider.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.
override
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? value) Future<void>
Update the user's profile picture.
override
updateProfile({String? displayName, String? photoURL}) Future<void>
Updates a user's profile data.
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