AccountManager class

Constructors

AccountManager.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

currentLoginUser UserModel
no setter

Static Methods

confirmToken() Future<bool>
createAccount(Map<String, dynamic> userData, {bool autoLogin = true}) Future<void>
createAccountByAdmin(String name, String email) Future<UserModel>
createAccountByGoogle(String googleApiKey) Future<void>
createDefaultAccount(String enterprise) Future<UserModel>
deleteAccount({bool deleteNow = false}) Future<void>
deleteAccountByUser(String userId, {bool deleteNow = false}) Future<void>
deleteToken() Future<void>
generateTemporaryPassword(int length) String
generateToken() Future<void>
getAccount(String email) Future<UserModel?>
getCurrentUserInfo() Future<void>
initialize() Future<void>
isExistAccount(String email) Future<AccountSignUpType?>
login(String email, String password) Future<void>
loginByGoogle(String googleApiKey) Future<void>
loginByService(String email, AccountSignUpType accountSignUpType) Future<void>
logout() Future<void>
resetPassword(String email) Future<(String, String)>
resetPasswordConfirm(String userId, String secret, String newPassword) Future<void>
restoreAccountByUser(String userId) Future<void>
updateAccountInfo(Map<String, dynamic> updateUserData) Future<void>
updateAccountPassword(String newPassword, String oldPassword) Future<void>