AppDropDownFormField<T extends Object> constructor
const
AppDropDownFormField<T extends Object> ({
- required AppItemsFetcher<
T> fetcher, - required AppItemsHandler<
T> handler, - String? labelText,
- TextStyle? labelStyle,
- String? hintText,
- AppItemsValidator<
T> ? validator, - InputBorder? border,
- InputBorder? focusedBorder,
- InputBorder? overlayOpenBorder,
- BoxBorder? overlayBorder,
- EdgeInsets? inputContentPadding,
- EdgeInsets? tilesContentPadding,
- bool showTrailing = true,
- AppTextFormFieldErrorType errorType = AppTextFormFieldErrorType.string,
- Widget tileBuilder(
- T item,
- bool selected,
- VoidCallback onTap
- bool enabled = true,
- bool updateTextOnChanged = true,
- bool? filled,
- Color? fillColor,
- TextInputType? keyboardType,
- Widget? suffixIcon,
- Widget? prefixIcon,
- bool requestFocusOnInitState = false,
- int? minLengthForSearch,
- TextEditingController? controller,
- FocusNode? focusNode,
- Color? overlayColor,
- BorderRadius? overlayBorderRadius,
- Duration debounceDuration = const Duration(milliseconds: 350),
- WidgetBuilder? emptyBuilder,
- WidgetBuilder? loadingBuilder,
- TextStyle? style,
- bool loading = false,
- bool showClearButton = true,
- 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,
});