OTPVerification constructor
const
OTPVerification({
- required String phoneNumber,
- int codeLength = 6,
- VoidCallback? onVerifyPressed,
- VoidCallback? onResendPressed,
- dynamic onCodeSubmitted()?,
- dynamic onCodeChanged()?,
- Widget? logo,
- String pageTitle = 'Enter OTP code',
- String inputHintText = '',
- String resendCodeText = 'Didn\'t receive the code?',
- String resendCodeButtonText = 'Resend code',
- String verifyButtonText = 'Verify',
- 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,
});