AFieldCPF constructor

const AFieldCPF({
  1. Key? key,
  2. bool readOnly = false,
  3. bool required = false,
  4. String? initialValue = '',
  5. void onChanged(
    1. String?
    )?,
  6. bool? showIcon,
  7. int? flexible,
  8. bool expanded = false,
  9. EdgeInsets? margin,
  10. String? label = 'CPF',
  11. String identifier = 'cpf',
  12. Iterable<String>? autofillHints,
  13. bool autofocus = false,
  14. Widget? bottom,
  15. bool capitalize = false,
  16. bool clearable = false,
  17. List<ARule<String>>? customRules,
  18. Map<String, RegExp>? filter,
  19. double height = 46,
  20. bool linkToAForm = true,
  21. VoidCallback? onSubmit,
  22. void onUnfocus()?,
  23. EdgeInsets? padding,
  24. bool readonly = false,
  25. 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: '###.###.###-##',
      );