getCurrentUserInfo static method
Future<void>
getCurrentUserInfo(
)
Implementation
static Future<void> getCurrentUserInfo() async {
if (_currentLoginUser.isLoginedUser == false && _currentLoginUser.isGuestUser == false) {
// not login !!!
//throw HycopUtils.getHycopException(defaultMessage: 'not login !!!');
return;
}
await initialize();
Map<String, dynamic> userData = {};
await HycopFactory.account!.getAccountInfo(_currentLoginUser.userId, userData).catchError(
(error, stackTrace) => throw HycopUtils.getHycopException(
error: error, defaultMessage: 'AccountManager.updateAccount Failed !!!'));
_currentLoginUser = UserModel(userData: userData);
}