CustomPinEntryField constructor
CustomPinEntryField({
- String? lastPin,
- InputDecoration? decoration,
- int fields = 4,
- dynamic onSubmit,
- double fieldWidth = 40.0,
- dynamic textStyle = const TextStyle(fontWeight: FontWeight.bold, color: Color(0xff393e58), fontSize: 18.0),
- bool showCursor = false,
- dynamic isTextObscure = false,
- dynamic showFieldAsBox = false,
- TextInputType keyboard = TextInputType.number,
Implementation
CustomPinEntryField(
{this.lastPin,
this.decoration,
this.fields = 4,
this.onSubmit,
this.fieldWidth = 40.0,
this.textStyle = const TextStyle(
fontWeight: FontWeight.bold,
color: Color(0xff393e58),
fontSize: 18.0,
),
this.showCursor = false,
this.isTextObscure = false,
this.showFieldAsBox = false,
this.keyboard = TextInputType.number})
: assert(fields > 0);