setState method

void setState(
  1. KeyVerificationState newState
)

Implementation

void setState(KeyVerificationState newState) {
  if (state != KeyVerificationState.error) {
    state = newState;
  }

  onUpdate?.call();
}