AppTextField constructor

AppTextField({
  1. TextEditingController? controller,
  2. required TextFieldType textFieldType,
  3. InputDecoration? decoration,
  4. FocusNode? focus,
  5. FormFieldValidator<String>? validator,
  6. bool? isPassword,
  7. InputCounterWidgetBuilder? buildCounter,
  8. bool? isValidationRequired,
  9. TextCapitalization? textCapitalization,
  10. TextInputAction? textInputAction,
  11. dynamic onFieldSubmitted(
    1. String
    )?,
  12. FocusNode? nextFocus,
  13. TextStyle? textStyle,
  14. TextAlign? textAlign,
  15. int? maxLines,
  16. int? minLines,
  17. bool? enabled,
  18. dynamic onChanged(
    1. String
    )?,
  19. Color? cursorColor,
  20. Widget? suffix,
  21. Color? suffixIconColor,
  22. bool? enableSuggestions,
  23. bool? autoFocus,
  24. bool? readOnly,
  25. int? maxLength,
  26. TextInputType? keyboardType,
  27. Iterable<String>? autoFillHints,
  28. EdgeInsets? scrollPadding,
  29. dynamic onTap()?,
  30. double? cursorWidth,
  31. double? cursorHeight,
  32. List<TextInputFormatter>? inputFormatters,
  33. String? errorThisFieldRequired,
  34. String? errorInvalidEmail,
  35. String? errorMinimumPasswordLength,
  36. String? errorInvalidURL,
  37. String? errorInvalidUsername,
  38. TextAlignVertical? textAlignVertical,
  39. bool? expands,
  40. bool? showCursor,
  41. TextSelectionControls? selectionControls,
  42. StrutStyle? strutStyle,
  43. String? obscuringCharacter,
  44. String? initialValue,
  45. Brightness? keyboardAppearance,
  46. ToolbarOptions? toolbarOptions,
  47. Widget? suffixPasswordVisibleWidget,
  48. Widget? suffixPasswordInvisibleWidget,
  49. String? errorMsgCustom,
  50. Key? key,
})

Implementation

AppTextField({
  this.controller,
  required this.textFieldType,
  this.decoration,
  this.focus,
  this.validator,
  this.isPassword,
  this.buildCounter,
  this.isValidationRequired,
  this.textCapitalization,
  this.textInputAction,
  this.onFieldSubmitted,
  this.nextFocus,
  this.textStyle,
  this.textAlign,
  this.maxLines,
  this.minLines,
  this.enabled,
  this.onChanged,
  this.cursorColor,
  this.suffix,
  this.suffixIconColor,
  this.enableSuggestions,
  this.autoFocus,
  this.readOnly,
  this.maxLength,
  this.keyboardType,
  this.autoFillHints,
  this.scrollPadding,
  this.onTap,
  this.cursorWidth,
  this.cursorHeight,
  this.inputFormatters,
  this.errorThisFieldRequired,
  this.errorInvalidEmail,
  this.errorMinimumPasswordLength,
  this.errorInvalidURL,
  this.errorInvalidUsername,
  this.textAlignVertical,
  this.expands,
  this.showCursor,
  this.selectionControls,
  this.strutStyle,
  this.obscuringCharacter,
  this.initialValue,
  this.keyboardAppearance,
  this.toolbarOptions,
  this.suffixPasswordVisibleWidget,
  this.suffixPasswordInvisibleWidget,
  this.errorMsgCustom,
  Key? key,
}) : super(key: key);