goBackToEmail method

void goBackToEmail()

Return to the email-input step. Cancels the resend cooldown, clears any displayed error, and preserves submittedEmail / emailId in case the consumer wants to re-use them (e.g. for a "wrong email" confirmation dialog).

Implementation

void goBackToEmail() {
  _cooldownTimer?.cancel();
  _cooldownTimer = null;
  _cooldownRemaining = 0;
  _step = CrossmintEmailSignInStep.emailInput;
  _error = null;
  _safeNotify();
}