AFieldCPF constructor
const
AFieldCPF({
- Key? key,
- bool readOnly = false,
- bool required = false,
- String? initialValue = '',
- void onChanged()?,
- bool? showIcon,
- int? flexible,
- bool expanded = false,
- EdgeInsets? margin,
- String? label = 'CPF',
- String identifier = 'cpf',
- Iterable<
String> ? autofillHints, - bool autofocus = false,
- Widget? bottom,
- bool capitalize = false,
- bool clearable = false,
- List<
ARule< ? customRules,String> > - Map<
String, RegExp> ? filter, - double height = 46,
- bool linkToAForm = true,
- VoidCallback? onSubmit,
- void onUnfocus()?,
- EdgeInsets? padding,
- bool readonly = false,
- Widget? suffix,
Implementation
const AFieldCPF({
super.key,
super.readOnly,
super.required,
super.initialValue = '',
super.onChanged,
bool? showIcon,
super.flexible,
super.expanded,
super.margin,
super.label = 'CPF',
super.identifier = 'cpf',
super.autofillHints,
super.autofocus,
super.bottom,
super.capitalize,
super.clearable,
super.customRules,
super.filter,
super.height,
super.linkToAForm,
super.onSubmit,
super.onUnfocus,
super.padding,
super.readonly,
super.suffix,
}) : super(
hintText: '000.000.000-00',
denySpaces: true,
icon: showIcon == false ? null : Icons.contact_emergency,
keyboardType: TextInputType.number,
mask: '###.###.###-##',
);