AGCUser class
Information about the current user.
Constructors
- AGCUser.fromMap(Map map)
Properties
- displayName → String?
-
Obtains the nickname of a user.
no setter
- email → String?
-
Obtains the email address of a user.
no setter
- emailVerified → bool?
-
Obtains the email address verification flag.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAnonymous → bool?
-
Checks whether a user is an anonymous user.
no setter
- passwordSet → bool?
-
Obtains the password setting flag.
no setter
- phone → String?
-
Obtains the mobile number of a user.
no setter
- photoUrl → String?
-
Obtains the URL of a user's profile picture.
no setter
- providerId → AuthProviderType?
-
Obtains the provider of the current user's account, that is, the name of the third-party authentication platform.
no setter
-
providerInfo
→ List<
Map< ?String, String> > -
Obtains all information about a user on the third-party authentication platform.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uid → String?
-
Obtains the user ID, which is generated by AppGallery Connect.
no setter
-
userExtra
→ Future<
AGCUserExtra> -
Obtains UserExtra of the current user.
no setter
Methods
-
getToken(
{bool forceRefresh = false}) → Future< TokenResult> - Obtains the access token of a user from AppGallery Connect.
-
link(
AGCAuthCredential credential) → Future< SignInResult> - Links a new authentication mode for the current user.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unlink(
AuthProviderType provider) → Future< SignInResult> - Unlinks the current user from the linked authentication mode.
-
updateEmail(
String newEmail, String newVerifyCode, {Locale? locale}) → Future< void> - Updates the profile information for the current user.
-
updatePassword(
String newPassword, String verifyCode, AuthProviderType provider) → Future< void> - Updates the current user's password.
-
updatePhone(
String countryCode, String phoneNumber, String newVerifyCode, {Locale? locale}) → Future< void> - Updates the mobile number of the current user.
-
updateProfile(
ProfileRequest profile) → Future< void> - Updates the profile information for the current user.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited