UOtpField constructor

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

Implementation

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