PinBox constructor

const PinBox({
  1. Key? key,
  2. GestureTapCallback? onTap,
  3. ValueCallback<String>? onChanged,
  4. ValueCallback<String>? onDone,
  5. bool autoFocus = true,
  6. bool needKeyBoard = true,
  7. bool obscureText = false,
  8. int maxLength = 4,
  9. List<TextInputFormatter>? inputFormatter,
  10. FocusNode? focusNode,
  11. Decoration? decoration,
  12. Decoration? pinDecoration,
  13. Decoration? hasFocusPinDecoration,
  14. TextStyle? textStyle,
  15. Size boxSize = const Size(40, 40),
  16. List<Widget?> spaces = const <Widget>[],
  17. TextInputLimitFormatter inputLimitFormatter = TextInputLimitFormatter.text,
  18. PinBoxTextFieldBuilder? builder,
  19. TextEditingController? controller,
})

Implementation

const PinBox(
    {super.key,
    this.onTap,
    this.onChanged,
    this.onDone,
    this.autoFocus = true,
    this.needKeyBoard = true,
    this.obscureText = false,
    this.maxLength = 4,
    this.inputFormatter,
    this.focusNode,
    this.decoration,
    this.pinDecoration,
    this.hasFocusPinDecoration,
    this.textStyle,
    this.boxSize = const Size(40, 40),
    this.spaces = const <Widget>[],
    this.inputLimitFormatter = TextInputLimitFormatter.text,
    this.builder,
    this.controller});