OTPTextField constructor

OTPTextField({
  1. int pinLength = 4,
  2. double fieldWidth = 40,
  3. dynamic onChanged(
    1. String
    )?,
  4. dynamic onCompleted(
    1. String
    )?,
  5. bool showUnderline = false,
  6. InputDecoration? decoration,
  7. BoxDecoration? boxDecoration,
  8. TextStyle? textStyle,
  9. Color? cursorColor,
  10. Key? key,
})

Implementation

OTPTextField({
  this.pinLength = 4,
  this.fieldWidth = 40,
  this.onChanged,
  this.onCompleted,
  this.showUnderline = false,
  this.decoration,
  this.boxDecoration,
  this.textStyle,
  this.cursorColor,
  super.key,
});