OtpPinField constructor

const OtpPinField({
  1. Key? key,
  2. double fieldHeight = 50.0,
  3. double fieldWidth = 50.0,
  4. int maxLength = 4,
  5. dynamic onCodeChanged(
    1. String
    )?,
  6. OtpPinFieldStyle? otpPinFieldStyle = const OtpPinFieldStyle(),
  7. TextInputAction textInputAction = TextInputAction.done,
  8. OtpPinFieldInputType otpPinFieldInputType = OtpPinFieldInputType.none,
  9. OtpPinFieldDecoration otpPinFieldDecoration = OtpPinFieldDecoration.underlinedPinBoxDecoration,
  10. String otpPinInputCustom = '*',
  11. String? smsRegex,
  12. required OnDone onSubmit,
  13. required OnChange onChange,
  14. TextInputType keyboardType = TextInputType.number,
  15. bool autoFocus = true,
  16. bool? autoFillEnable = false,
  17. bool? phoneNumbersHint = false,
  18. bool highlightBorder = true,
  19. bool? showCursor = true,
  20. Color? cursorColor,
  21. double? cursorWidth = 2,
  22. MainAxisAlignment? mainAxisAlignment,
  23. Widget? upperChild,
  24. Widget? middleChild,
  25. Widget? customKeyboard,
  26. bool? showCustomKeyboard,
  27. bool? showDefaultKeyboard = true,
})

Implementation

const OtpPinField(
    {Key? key,
    this.fieldHeight = 50.0,
    this.fieldWidth = 50.0,
    this.maxLength = 4,
    this.onCodeChanged,
    this.otpPinFieldStyle = const OtpPinFieldStyle(),
    this.textInputAction = TextInputAction.done,
    this.otpPinFieldInputType = OtpPinFieldInputType.none,
    this.otpPinFieldDecoration =
        OtpPinFieldDecoration.underlinedPinBoxDecoration,
    this.otpPinInputCustom = '*',
    this.smsRegex,
    required this.onSubmit,
    required this.onChange,
    this.keyboardType = TextInputType.number,
    this.autoFocus = true,
    this.autoFillEnable = false,
    this.phoneNumbersHint = false,
    this.highlightBorder = true,
    this.showCursor = true,
    this.cursorColor,
    this.cursorWidth = 2,
    this.mainAxisAlignment,
    this.upperChild,
    this.middleChild,
    this.customKeyboard,
    this.showCustomKeyboard,
    this.showDefaultKeyboard = true})
    : super(key: key);