BoltPinInput constructor
const
BoltPinInput({
- Key? key,
- required int length,
- required dynamic onCompleted(),
- dynamic onChanged()?,
- bool obscureText = false,
- PinInputTheme theme = PinInputTheme.outlined,
- Color? activeColor,
- Color? inactiveColor,
- Color? textColor,
- Color? backgroundColor,
- String? errorText,
- TextStyle? errorTextStyle,
- FocusNode? focusNode,
- String? initialValue,
- TextInputType keyboardType = TextInputType.number,
- double? width,
- double? height,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- BorderRadius? borderRadius,
- double? fontSize,
- Decoration? pinDecoration,
- Duration animationDuration = const Duration(milliseconds: 300),
- bool autofocus = false,
- bool showCursor = true,
- List<
TextInputFormatter> ? inputFormatters,
Implementation
const BoltPinInput({
super.key,
required this.length,
required this.onCompleted,
this.onChanged,
this.obscureText = false,
this.theme = PinInputTheme.outlined,
this.activeColor,
this.inactiveColor,
this.textColor,
this.backgroundColor,
this.errorText,
this.errorTextStyle,
this.focusNode,
this.initialValue,
this.keyboardType = TextInputType.number,
this.width,
this.height,
this.margin,
this.padding,
this.borderRadius,
this.fontSize,
this.pinDecoration,
this.animationDuration = const Duration(milliseconds: 300),
this.autofocus = false,
this.showCursor = true,
this.inputFormatters,
});