SuggestionsList<T> constructor

const SuggestionsList<T>({
  1. Key? key,
  2. required SuggestionsBox? suggestionsBox,
  3. TextEditingController? controller,
  4. bool intercepting = false,
  5. bool getImmediateSuggestions = false,
  6. SuggestionSelectionCallback<T>? onSuggestionSelected,
  7. SuggestionsCallback<T>? suggestionsCallback,
  8. ItemBuilder<T>? itemBuilder,
  9. IndexedWidgetBuilder? itemSeparatorBuilder,
  10. LayoutArchitecture? layoutArchitecture,
  11. ScrollController? scrollController,
  12. SuggestionsBoxDecoration? decoration,
  13. Duration? debounceDuration,
  14. WidgetBuilder? loadingBuilder,
  15. WidgetBuilder? noItemsFoundBuilder,
  16. ErrorBuilder? errorBuilder,
  17. AnimationTransitionBuilder? transitionBuilder,
  18. Duration? animationDuration,
  19. double? animationStart,
  20. AxisDirection? direction,
  21. bool? hideOnLoading,
  22. bool? hideOnEmpty,
  23. bool? hideOnError,
  24. bool? keepSuggestionsOnLoading,
  25. int? minCharsForSuggestions,
  26. required KeyboardSuggestionSelectionNotifier keyboardSuggestionSelectionNotifier,
  27. required ShouldRefreshSuggestionFocusIndexNotifier shouldRefreshSuggestionFocusIndexNotifier,
  28. required VoidCallback giveTextFieldFocus,
  29. required VoidCallback onSuggestionFocus,
  30. required KeyEventResult onKeyEvent(
    1. FocusNode _,
    2. RawKeyEvent event
    ),
  31. 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,
});