SuggestionsList<T> constructor
const
SuggestionsList<T> ({
- Key? key,
- required SuggestionsBox? suggestionsBox,
- TextEditingController? controller,
- bool intercepting = false,
- bool getImmediateSuggestions = false,
- SuggestionSelectionCallback<
T> ? onSuggestionSelected, - SuggestionsCallback<
T> ? suggestionsCallback, - ItemBuilder<
T> ? itemBuilder, - IndexedWidgetBuilder? itemSeparatorBuilder,
- LayoutArchitecture? layoutArchitecture,
- ScrollController? scrollController,
- SuggestionsBoxDecoration? decoration,
- Duration? debounceDuration,
- WidgetBuilder? loadingBuilder,
- WidgetBuilder? noItemsFoundBuilder,
- ErrorBuilder? errorBuilder,
- AnimationTransitionBuilder? transitionBuilder,
- Duration? animationDuration,
- double? animationStart,
- AxisDirection? direction,
- bool? hideOnLoading,
- bool? hideOnEmpty,
- bool? hideOnError,
- bool? keepSuggestionsOnLoading,
- int? minCharsForSuggestions,
- required KeyboardSuggestionSelectionNotifier keyboardSuggestionSelectionNotifier,
- required ShouldRefreshSuggestionFocusIndexNotifier shouldRefreshSuggestionFocusIndexNotifier,
- required VoidCallback giveTextFieldFocus,
- required VoidCallback onSuggestionFocus,
- required KeyEventResult onKeyEvent(
- FocusNode _,
- RawKeyEvent event
- required bool hideKeyboardOnDrag,
Implementation
const SuggestionsList({
super.key,
required this.suggestionsBox,
this.controller,
this.intercepting = false,
this.getImmediateSuggestions = false,
this.onSuggestionSelected,
this.suggestionsCallback,
this.itemBuilder,
this.itemSeparatorBuilder,
this.layoutArchitecture,
this.scrollController,
this.decoration,
this.debounceDuration,
this.loadingBuilder,
this.noItemsFoundBuilder,
this.errorBuilder,
this.transitionBuilder,
this.animationDuration,
this.animationStart,
this.direction,
this.hideOnLoading,
this.hideOnEmpty,
this.hideOnError,
this.keepSuggestionsOnLoading,
this.minCharsForSuggestions,
required this.keyboardSuggestionSelectionNotifier,
required this.shouldRefreshSuggestionFocusIndexNotifier,
required this.giveTextFieldFocus,
required this.onSuggestionFocus,
required this.onKeyEvent,
required this.hideKeyboardOnDrag,
});