deleteAccount static method
Implementation
static Future<void> deleteAccount() async {
if (_currentLoginUser.isLoginedUser == false) {
// already logout !!!
throw HycopUtils.getHycopException(defaultMessage: 'not login !!!');
}
await initialize();
await HycopFactory.account!.deleteAccount().catchError((error, stackTrace) =>
throw HycopUtils.getHycopException(
error: error, defaultMessage: 'AccountManager.deleteAccount Failed !!!'));
await logout();
}