restoreAccountByUser static method
Implementation
static Future<void> restoreAccountByUser(String userId) async {
await initialize();
Map<String, dynamic> userData = {};
await HycopFactory.account!.getRemovedAccountInfo(userId, userData);
userData['isRemoved'] = false;
await HycopFactory.account!.updateAccountInfo(userData).catchError((error, stackTrace) =>
throw HycopUtils.getHycopException(
error: error, defaultMessage: 'AccountManager.updateAccountInfo Failed !!!'));
}