CreditCardNumberField constructor
const
CreditCardNumberField({
- String? labelPrefix,
- String? label,
- Widget? labelWidget,
- TextEditingController? controller,
- String? validator(
- String? value
- bool obscureText = false,
- List<
TextInputFormatter> ? inputFormatter, - TextAlign textAlign = TextAlign.start,
- void onSaved(
- String? value
- String? initialValue,
- bool enabled = true,
- AutovalidateMode autoValidateMode = AutovalidateMode.disabled,
- ValueChanged<
String?> ? onChanged, - FocusNode? focusNode,
- TextInputAction? textInputAction,
- ValueChanged<
String?> ? onFieldSubmitted, - bool autocorrect = true,
- bool enableSuggestions = true,
- TextCapitalization textCapitalization = TextCapitalization.none,
- EdgeInsets scrollPadding = const EdgeInsets.all(20),
- bool enableInteractiveSelection = true,
- bool filled = false,
- Color? fillColor,
- bool required = true,
- Iterable<
String> ? autofillHints, - bool readOnly = false,
- TextStyle? style,
- InputDecoration? decoration,
- EdgeInsets padding = const EdgeInsets.all(8),
- String? hintText,
- EdgeInsets? contentPadding,
- String? counterText = '',
- Widget? prefix,
- Widget? prefixIcon,
- Widget? suffix,
- Widget? suffixIcon,
- bool trimOnSaved = true,
- dynamic onTypeChange(
- CreditCardType creditCardType
- dynamic onValid(
- bool valid
- String validatorMessage = 'Informe o número do cartão de crédito.',
- void onTap()?,
- int? sizeExtraSmall,
- int? sizeSmall,
- int? sizeMedium,
- int? sizeLarge,
- int? sizeExtraLarge,
- double? minHeight,
- Key? key,
Implementation
const CreditCardNumberField({
this.labelPrefix,
this.label,
this.labelWidget,
this.controller,
this.validator,
this.obscureText = false,
this.inputFormatter,
this.textAlign = TextAlign.start,
this.onSaved,
this.initialValue,
this.enabled = true,
this.autoValidateMode = AutovalidateMode.disabled,
this.onChanged,
this.focusNode,
this.textInputAction,
this.onFieldSubmitted,
this.autocorrect = true,
this.enableSuggestions = true,
this.textCapitalization = TextCapitalization.none,
this.scrollPadding = const EdgeInsets.all(20),
this.enableInteractiveSelection = true,
this.filled = false,
this.fillColor,
this.required = true,
this.autofillHints,
this.readOnly = false,
this.style,
this.decoration,
this.padding = const EdgeInsets.all(8),
this.hintText,
this.contentPadding,
this.counterText = '',
this.prefix,
this.prefixIcon,
this.suffix,
this.suffixIcon,
this.trimOnSaved = true,
this.onTypeChange,
this.onValid,
this.validatorMessage = 'Informe o número do cartão de crédito.',
this.onTap,
super.sizeExtraSmall,
super.sizeSmall,
super.sizeMedium,
super.sizeLarge,
super.sizeExtraLarge,
super.minHeight,
super.key,
}) : assert(
initialValue == null || controller == null,
'initialValue or controller must be null.',
);