sendConfirmationCode method

Future<void> sendConfirmationCode()

Sends a ConfirmationCode to confirm the deleteAccount.

Implementation

Future<void> sendConfirmationCode() async {
  _setResendEmailTimer();

  try {
    await _authService.createConfirmationCode();
  } catch (e) {
    code.resubmitOnError.value = true;
    code.error.value = 'err_data_transfer'.l10n;
    _setResendEmailTimer(false);
    rethrow;
  }
}