onPhoneNumberValidated method Null safety

  1. @override
dynamic onPhoneNumberValidated(
  1. bool valid
)
override

Implementation

@override
onPhoneNumberValidated(bool valid) {
  if (valid) {
    update(state: PhoneVerificationState.readyToSendCode);
  } else {
    update(state: PhoneVerificationState.inputPhoneNumber);
  }
}