setError method

void setError(
  1. String message, {
  2. int? attemptsLeft,
})

Implementation

void setError(String message, {int? attemptsLeft}) {
  state = OTPState.error(message, attemptsLeft: attemptsLeft);
}