OtpInputWidget constructor

const OtpInputWidget({
  1. Key? key,
  2. int length = 6,
  3. ValueChanged<String>? onChanged,
  4. ValueChanged<String>? onCompleted,
  5. double boxWidth = 44,
  6. double boxHeight = 52,
  7. bool obscureText = false,
  8. bool autoFocus = false,
  9. String? semanticLabel,
})

Creates an OTP input.

Implementation

const OtpInputWidget({
  super.key,
  this.length = 6,
  this.onChanged,
  this.onCompleted,
  this.boxWidth = 44,
  this.boxHeight = 52,
  this.obscureText = false,
  this.autoFocus = false,
  this.semanticLabel,
});