CustomPinEntryField constructor

CustomPinEntryField({
  1. String? lastPin,
  2. InputDecoration? decoration,
  3. int fields = 4,
  4. dynamic onSubmit,
  5. double fieldWidth = 40.0,
  6. dynamic textStyle = const TextStyle(fontWeight: FontWeight.bold, color: Color(0xff393e58), fontSize: 18.0),
  7. bool showCursor = false,
  8. dynamic isTextObscure = false,
  9. dynamic showFieldAsBox = false,
  10. 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);