AuthCodeTextfield constructor

AuthCodeTextfield(
  1. {Key? key,
  2. AuthCodeLength length = AuthCodeLength.four,
  3. AuthCodeMode mode = AuthCodeMode.singleItem,
  4. double itemWidth = 50.0,
  5. double itemHeight = 50.0,
  6. double itemSpacing = 1.0,
  7. double itemBorderRadius = 4.0,
  8. double itemBottomLineWidth = 1.0,
  9. Color itemBackgroundColor = Colors.transparent,
  10. Color itemBottomLineColor = Colors.blueGrey,
  11. double cursorWidth = 20.0,
  12. double cursorHeight = 2.0,
  13. Color cursorColor = Colors.blue,
  14. Color textColor = Colors.black,
  15. double fontSize = 25,
  16. double borderWidth = 0.0,
  17. Color borderColor = Colors.grey,
  18. ValueChanged? onChanged,
  19. double? cursorBottomOffset,
  20. FontWeight? fontWeight,
  21. bool autofocus = true,
  22. FocusNode? focusNode,
  23. 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);