UOtpField constructor

const UOtpField({
  1. required Color cursorColor,
  2. required Color fillColor,
  3. required Color activeColor,
  4. required Color borderColor,
  5. required TextEditingController controller,
  6. Key? key,
  7. int length = 6,
  8. bool autoFocus = false,
  9. ValueChanged<String>? onChanged,
  10. ValueChanged<String>? onCompleted,
  11. FormFieldValidator<String>? validator,
  12. TextStyle? textStyle,
  13. double fieldWidth = 48,
  14. double fieldHeight = 60,
  15. double borderRadius = 8,
  16. double borderWidth = 1.5,
  17. bool obscureText = false,
  18. String obscuringCharacter = "•",
  19. TextInputType keyboardType = TextInputType.number,
  20. bool showCursor = true,
  21. bool readOnly = false,
  22. InputDecoration? decoration,
  23. bool autoDismissKeyboard = true,
  24. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceBetween,
})

Implementation

const UOtpField({
  required this.cursorColor,
  required this.fillColor,
  required this.activeColor,
  required this.borderColor,
  required this.controller,
  super.key,
  this.length = 6,
  this.autoFocus = false,
  this.onChanged,
  this.onCompleted,
  this.validator,
  this.textStyle,
  this.fieldWidth = 48,
  this.fieldHeight = 60,
  this.borderRadius = 8,
  this.borderWidth = 1.5,
  this.obscureText = false,
  this.obscuringCharacter = "•",
  this.keyboardType = TextInputType.number,
  this.showCursor = true,
  this.readOnly = false,
  this.decoration,
  this.autoDismissKeyboard = true,
  this.mainAxisAlignment = MainAxisAlignment.spaceBetween,
});