OTPVerification constructor

const OTPVerification({
  1. required String phoneNumber,
  2. int codeLength = 6,
  3. VoidCallback? onVerifyPressed,
  4. VoidCallback? onResendPressed,
  5. dynamic onCodeSubmitted(
    1. String
    )?,
  6. dynamic onCodeChanged(
    1. String
    )?,
  7. String pageTitle = 'Enter OTP code',
  8. String inputHintText = '',
  9. String resendCodeText = 'Didn\'t receive the code?',
  10. String resendCodeButtonText = 'Resend code',
  11. String verifyButtonText = 'Verify',
  12. Key? key,
})

Implementation

const OTPVerification({
  required this.phoneNumber,
  this.codeLength = 6,
  this.onVerifyPressed,
  this.onResendPressed,
  this.onCodeSubmitted,
  this.onCodeChanged,
  this.logo,
  this.pageTitle = 'Enter OTP code',
  this.inputHintText = '',
  this.resendCodeText = 'Didn\'t receive the code?',
  this.resendCodeButtonText = 'Resend code',
  this.verifyButtonText = 'Verify',
  super.key,
});