GenericTextField constructor

GenericTextField({
  1. String? label,
  2. String? hint,
  3. required FieldTypes fieldTypes,
  4. TextEditingController? controller,
  5. EdgeInsets? margin,
  6. required TextInputType type,
  7. dynamic onTab()?,
  8. int? max,
  9. Color? textColor,
  10. Color? fillColor,
  11. Color? hintColor,
  12. Widget? prefixIcon,
  13. Widget? suffixIcon,
  14. dynamic onChange(
    1. String
    )?,
  15. dynamic onSubmit()?,
  16. required TextInputAction action,
  17. Color? enableBorderColor,
  18. required dynamic validate(
    1. String? value
    ),
})

Implementation

GenericTextField(
    { this.label,
     this.hint,
    required this.fieldTypes,
    this.controller,
    this.margin,
    required this.type,
    this.onTab,
    this.max,
    this.textColor,
    this.fillColor,
    this.hintColor,
    this.prefixIcon,
    this.suffixIcon,
    this.onChange,
    this.onSubmit,
    required this.action,
    this.enableBorderColor,
    required this.validate});