PinBox constructor
const
PinBox({
- Key? key,
- GestureTapCallback? onTap,
- ValueCallback<
String> ? onChanged, - ValueCallback<
String> ? onDone, - bool autoFocus = true,
- bool needKeyBoard = true,
- bool obscureText = false,
- int maxLength = 4,
- List<
TextInputFormatter> ? inputFormatter, - FocusNode? focusNode,
- Decoration? decoration,
- Decoration? pinDecoration,
- Decoration? hasFocusPinDecoration,
- TextStyle? textStyle,
- Size boxSize = const Size(40, 40),
- List<
Widget?> spaces = const <Widget>[], - TextInputLimitFormatter inputLimitFormatter = TextInputLimitFormatter.text,
- PinBoxTextFieldBuilder? builder,
- 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});