OtpTextField constructor

const OtpTextField({
  1. Key? key,
  2. FocusNode? focusNode,
  3. dynamic onChanged(
    1. String v
    )?,
  4. TextEditingController? controller,
  5. dynamic onSubmit(
    1. String v
    )?,
  6. InputBorder? inputBorder,
  7. required double maxWidth,
  8. required double maxHeight,
  9. bool? isDense,
  10. TextStyle? style,
  11. Color? cursorColor,
  12. double? cursorHeight,
  13. Radius? cursorRadius,
  14. double cursorWidth = 2,
})

Implementation

const OtpTextField({
  super.key,
  this.focusNode,
  this.onChanged,
  this.controller,
  this.onSubmit,
  this.inputBorder,
  required this.maxWidth,
  required this.maxHeight,
  this.isDense,
  this.style,
  this.cursorColor,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorWidth = 2,
});