AuthCodeTextfield constructor
AuthCodeTextfield(
- {Key? key,
- AuthCodeLength length = AuthCodeLength.four,
- AuthCodeMode mode = AuthCodeMode.singleItem,
- double itemWidth = 50.0,
- double itemHeight = 50.0,
- double itemSpacing = 1.0,
- double itemBorderRadius = 4.0,
- double itemBottomLineWidth = 1.0,
- Color itemBackgroundColor = Colors.transparent,
- Color itemBottomLineColor = Colors.blueGrey,
- double cursorWidth = 20.0,
- double cursorHeight = 2.0,
- Color cursorColor = Colors.blue,
- Color textColor = Colors.black,
- double fontSize = 25,
- double borderWidth = 0.0,
- Color borderColor = Colors.grey,
- ValueChanged? onChanged,
- double? cursorBottomOffset,
- FontWeight? fontWeight,
- bool autofocus = true,
- FocusNode? focusNode,
- TextEditingController? controller}
Implementation
AuthCodeTextfield(
{Key? key,
this.length = AuthCodeLength.four,
this.mode = AuthCodeMode.singleItem,
this.itemWidth = 50.0,
this.itemHeight = 50.0,
this.itemSpacing = 1.0,
this.itemBorderRadius = 4.0,
this.itemBottomLineWidth = 1.0,
this.itemBackgroundColor = Colors.transparent,
this.itemBottomLineColor = Colors.blueGrey,
this.cursorWidth = 20.0,
this.cursorHeight = 2.0,
this.cursorColor = Colors.blue,
this.textColor = Colors.black,
this.fontSize = 25,
this.borderWidth = 0.0,
this.borderColor = Colors.grey,
this.onChanged,
this.cursorBottomOffset,
this.fontWeight,
this.autofocus = true,
this.focusNode,
this.controller})
: super(key: key);