deleteAccount method

Future<void> deleteAccount(
  1. String userId
)

Implementation

Future<void> deleteAccount(String userId) async {
  try {
    await _userDataService.deleteAccount(userId);
  } catch (e) {
    if (e is UserDataServiceException) {
      throw UserServiceException(
          code: e.code, message: e.message, stackTrace: e.stackTrace);
    }
    throw UserServiceException();
  }
}