FastFormField constructor

const FastFormField({
  1. Key? key,
  2. String? label,
  3. void onChanged(
    1. String
    )?,
  4. bool? autoFocus,
  5. String? hint,
  6. Widget? prefix,
  7. Widget? suffix,
  8. bool? isPassword,
  9. TextEditingController? controller,
  10. String? validator(
    1. String?
    )?,
  11. void onFieldSubmitted(
    1. String
    )?,
  12. TextInputType? textInputType,
  13. TextInputAction? textInputAction,
  14. List<TextInputFormatter>? mask,
  15. dynamic onEditingComplete()?,
  16. double radius = 8,
  17. int maxLines = 1,
  18. int minLines = 1,
})

FastFormField

FastFormField(
  label: 'Label',
  mask: [Mask.maskPhone],
  validator: Zod().phone().build,
)

Implementation

const FastFormField({
  super.key,
  this.label,
  this.onChanged,
  this.autoFocus,
  this.hint,
  this.prefix,
  this.suffix,
  this.isPassword,
  this.controller,
  this.validator,
  this.onFieldSubmitted,
  this.textInputType,
  this.textInputAction,
  this.mask,
  this.onEditingComplete,
  this.radius = 8,
  this.maxLines = 1,
  this.minLines = 1,
});