UOtpField constructor
const
UOtpField({
- TextEditingController? controller,
- Color? cursorColor,
- Color? fillColor,
- Color? activeColor,
- Color? borderColor,
- int length = 6,
- bool autoFocus = false,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onCompleted, - TextStyle? textStyle,
- double fieldWidth = 48,
- double fieldHeight = 60,
- double borderRadius = 8,
- double borderWidth = 1,
- bool obscureText = false,
- String obscuringCharacter = "•",
- TextInputType keyboardType = TextInputType.number,
- bool showCursor = true,
- bool readOnly = false,
- InputDecoration? decoration,
- bool autoDismissKeyboard = true,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceBetween,
- 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,
});