OtpCollectionV2 constructor

const OtpCollectionV2({
  1. Key? key,
  2. required String heading,
  3. required String subheading,
  4. required Future<void> resendOTPSMS(),
  5. Future<void> resendOTPWhatsapp()?,
  6. required int expectedOtpLength,
  7. required bool isNumberOfAttemptsLimited,
  8. required int totalAttempts,
  9. required bool isWhatsappEnabled,
  10. required bool resendOtpOnlyViaEmail,
  11. String? optionalWarningText,
})

Implementation

const OtpCollectionV2({
  super.key,
  required this.heading,
  required this.subheading,
  required this.resendOTPSMS,
  this.resendOTPWhatsapp,
  required this.expectedOtpLength,
  required this.isNumberOfAttemptsLimited,
  required this.totalAttempts,
  required this.isWhatsappEnabled,
  required this.resendOtpOnlyViaEmail,
  this.optionalWarningText,
});