OTPTextField constructor
OTPTextField({
- int pinLength = 4,
- double fieldWidth = 40,
- dynamic onChanged()?,
- dynamic onCompleted()?,
- bool showUnderline = false,
- InputDecoration? decoration,
- BoxDecoration? boxDecoration,
- TextStyle? textStyle,
- Color? cursorColor,
- Key? key,
Implementation
OTPTextField({
this.pinLength = 4,
this.fieldWidth = 40,
this.onChanged,
this.onCompleted,
this.showUnderline = false,
this.decoration,
this.boxDecoration,
this.textStyle,
this.cursorColor,
super.key,
});