JetPinField constructor
const
JetPinField({
- Key? key,
- required String name,
- String? initialValue,
- FormFieldValidator<
String> ? validator, - bool isRequired = true,
- int length = 6,
- ValueChanged<
String> ? onCompleted, - ValueChanged<
String> ? onSubmitted, - ValueChanged<
String> ? onChanged, - bool autofocus = false,
- bool enabled = true,
- bool obscureText = false,
- bool showCursor = true,
- String? hintCharacter,
- bool readOnly = false,
- double spacing = 16.0,
- double? boxWidth,
- double? boxHeight,
- BorderRadius? borderRadius,
- Color? defaultBorderColor,
- Color? focusedBorderColor,
- Color? filledBorderColor,
- Color? submittedBorderColor,
- Color? errorBorderColor,
- Color? defaultFillColor,
- Color? focusedFillColor,
- Color? filledFillColor,
- Color? submittedFillColor,
- Color? errorFillColor,
- double borderWidth = 2.0,
- TextStyle? textStyle,
- TextStyle? hintStyle,
- TextStyle? errorStyle,
- Curve animationCurve = Curves.easeInOut,
- Duration animationDuration = const Duration(milliseconds: 200),
- bool hapticFeedback = false,
- bool closeKeyboardWhenCompleted = false,
- String? errorText,
- String? helperText,
- TextStyle? helperStyle,
Implementation
const JetPinField({
super.key,
required this.name,
this.initialValue,
this.validator,
this.isRequired = true,
this.length = 6,
this.onCompleted,
this.onSubmitted,
this.onChanged,
this.autofocus = false,
this.enabled = true,
this.obscureText = false,
this.showCursor = true,
this.hintCharacter,
this.readOnly = false,
this.spacing = 16.0,
this.boxWidth,
this.boxHeight,
this.borderRadius,
this.defaultBorderColor,
this.focusedBorderColor,
this.filledBorderColor,
this.submittedBorderColor,
this.errorBorderColor,
this.defaultFillColor,
this.focusedFillColor,
this.filledFillColor,
this.submittedFillColor,
this.errorFillColor,
this.borderWidth = 2.0,
this.textStyle,
this.hintStyle,
this.errorStyle,
this.animationCurve = Curves.easeInOut,
this.animationDuration = const Duration(milliseconds: 200),
this.hapticFeedback = false,
this.closeKeyboardWhenCompleted = false,
this.errorText,
this.helperText,
this.helperStyle,
});