AppDropDownFormField<T extends Object> constructor

const AppDropDownFormField<T extends Object>({
  1. required AppItemsFetcher<T> fetcher,
  2. required AppItemsHandler<T> handler,
  3. String? labelText,
  4. TextStyle? labelStyle,
  5. String? hintText,
  6. AppItemsValidator<T>? validator,
  7. InputBorder? border,
  8. InputBorder? focusedBorder,
  9. InputBorder? overlayOpenBorder,
  10. BoxBorder? overlayBorder,
  11. EdgeInsets? inputContentPadding,
  12. EdgeInsets? tilesContentPadding,
  13. bool showTrailing = true,
  14. AppTextFormFieldErrorType errorType = AppTextFormFieldErrorType.string,
  15. Widget tileBuilder(
    1. T item,
    2. bool selected,
    3. VoidCallback onTap
    )?,
  16. bool enabled = true,
  17. bool updateTextOnChanged = true,
  18. bool? filled,
  19. Color? fillColor,
  20. TextInputType? keyboardType,
  21. Widget? suffixIcon,
  22. Widget? prefixIcon,
  23. bool requestFocusOnInitState = false,
  24. int? minLengthForSearch,
  25. TextEditingController? controller,
  26. FocusNode? focusNode,
  27. Color? overlayColor,
  28. BorderRadius? overlayBorderRadius,
  29. Duration debounceDuration = const Duration(milliseconds: 350),
  30. WidgetBuilder? emptyBuilder,
  31. WidgetBuilder? loadingBuilder,
  32. TextStyle? style,
  33. bool loading = false,
  34. bool showClearButton = true,
  35. Key? key,
})

Implementation

const AppDropDownFormField({
  required this.fetcher,
  required this.handler,
  this.labelText,
  this.labelStyle,
  this.hintText,
  this.validator,
  this.border,
  this.focusedBorder,
  this.overlayOpenBorder,
  this.overlayBorder,
  this.inputContentPadding,
  this.tilesContentPadding,
  this.showTrailing = true,
  this.errorType = AppTextFormFieldErrorType.string,
  this.tileBuilder,
  this.enabled = true,
  this.updateTextOnChanged = true,
  this.filled,
  this.fillColor,
  this.keyboardType,
  this.suffixIcon,
  this.prefixIcon,
  this.requestFocusOnInitState = false,
  this.minLengthForSearch,
  this.controller,
  this.focusNode,
  this.overlayColor,
  this.overlayBorderRadius,
  this.debounceDuration = const Duration(milliseconds: 350),
  this.emptyBuilder,
  this.loadingBuilder,
  this.style,
  this.loading = false,
  this.showClearButton = true,
  super.key,
});