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. InputBorder? errorBorder,
  11. BoxBorder? overlayBorder,
  12. EdgeInsets? inputContentPadding,
  13. EdgeInsets? tilesContentPadding,
  14. bool showTrailing = true,
  15. AppTextFormFieldErrorType errorType = AppTextFormFieldErrorType.string,
  16. Widget tileBuilder(
    1. T item,
    2. bool selected,
    3. VoidCallback onTap
    )?,
  17. bool enabled = true,
  18. bool updateTextOnChanged = true,
  19. bool? filled,
  20. Color? fillColor,
  21. TextInputType? keyboardType,
  22. Widget? suffixIcon,
  23. Widget? prefixIcon,
  24. bool requestFocusOnInitState = false,
  25. int? minLengthForSearch,
  26. TextEditingController? controller,
  27. FocusNode? focusNode,
  28. Color? overlayColor,
  29. BorderRadius? overlayBorderRadius,
  30. Duration debounceDuration = const Duration(milliseconds: 350),
  31. WidgetBuilder? emptyBuilder,
  32. WidgetBuilder? loadingBuilder,
  33. TextStyle? style,
  34. bool loading = false,
  35. bool showClearButton = true,
  36. bool readOnly = false,
  37. Color? barrierColor,
  38. bool openAsBottomSheet = false,
  39. ValueChanged<bool>? onFocusChanged,
  40. Widget? prefixBuilder(
    1. T
    )?,
  41. bool keepTextOnItemChange = false,
  42. 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.errorBorder,
  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,
  this.readOnly = false,
  this.barrierColor,
  this.openAsBottomSheet = false,
  this.onFocusChanged,
  this.prefixBuilder,
  this.keepTextOnItemChange = false,
  super.key,
});