GenericTextField constructor

GenericTextField({
  1. String? label,
  2. String? hint,
  3. required FieldTypes fieldTypes,
  4. TextEditingController? controller,
  5. FocusNode? focusNode,
  6. EdgeInsets? margin,
  7. bool autoFocus = false,
  8. EdgeInsets? contentPadding,
  9. List<TextInputFormatter>? inputFormatters,
  10. required TextInputType type,
  11. dynamic onTab()?,
  12. double? hintTextSize,
  13. BorderRadius? radius,
  14. int? max,
  15. int? maxLength,
  16. Widget? suffixWidget,
  17. Widget? prefixWidget,
  18. Color? textColor,
  19. Color? fillColor,
  20. Color? hintColor,
  21. Widget? prefixIcon,
  22. Widget? suffixIcon,
  23. dynamic onChange(
    1. String
    )?,
  24. TextDirection? textDirection,
  25. String? fontFamily,
  26. AutovalidateMode? autoValidateMode,
  27. dynamic onSubmit()?,
  28. required TextInputAction action,
  29. Color? enableBorderColor,
  30. Color? focusBorderColor,
  31. required dynamic validate(
    1. String? value
    ),
})

Implementation

GenericTextField(
    { this.label,
     this.hint,
    required this.fieldTypes,
    this.controller,
    this.focusNode,
    this.margin,
    this.autoFocus = false,
    this.contentPadding,
    this.inputFormatters,
    required this.type,
    this.onTab,
    this.hintTextSize,
    this.radius,
    this.max,
    this.maxLength,
    this.suffixWidget,
    this.prefixWidget,
    this.textColor,
    this.fillColor,
    this.hintColor,
    this.prefixIcon,
    this.suffixIcon,
    this.onChange,
    this.textDirection,
    this.fontFamily,
    this.autoValidateMode,
    this.onSubmit,
    required this.action,
    this.enableBorderColor,
    this.focusBorderColor,
    required this.validate});