OtpVerificationView constructor

const OtpVerificationView({
  1. Key? key,
  2. required String title,
  3. required String description,
  4. String? target,
  5. String refCode = 'abdGR',
  6. Future<void> onResend()?,
  7. required ValueChanged<String> onSubmit,
  8. bool showSubmitButton = false,
  9. bool autoSubmit = true,
  10. bool hasError = false,
  11. ValueChanged<String>? onChanged,
})

Implementation

const OtpVerificationView({
  super.key,
  required this.title,
  required this.description,
  this.target,
  this.refCode = 'abdGR',
  this.onResend,
  required this.onSubmit,
  this.showSubmitButton = false,
  this.autoSubmit = true,
  this.hasError = false,
  this.onChanged,
});