PlatformTypeAhead<T> constructor
PlatformTypeAhead<T> ({
- Key? key,
- required SuggestionsCallback<
T> suggestionsCallback, - required SuggestionSelectionCallback<
T> onSuggestionSelected, - required ItemBuilder<
T> itemBuilder, - SuggestionsBoxDecoration? suggestionsBoxDecoration,
- PlatformSuggestionBoxController? suggestionsBoxController,
- Duration? debounceDuration,
- WidgetBuilder? loadingBuilder,
- WidgetBuilder? noItemsFoundBuilder,
- ErrorBuilder? errorBuilder,
- AnimationTransitionBuilder? transitionBuilder,
- Duration? animationDuration,
- AxisDirection? direction,
- double animationStart = 0.25,
- PlatformTextFieldConfiguration<
T> ? textFieldConfiguration, - double suggestionsBoxVerticalOffset = 5.0,
- bool? getImmediateSuggestions,
- bool? hideOnLoading,
- bool? hideOnEmpty,
- bool? hideOnError,
- bool? hideSuggestionsOnKeyboardHide,
- bool? keepSuggestionsOnLoading,
- bool? keepSuggestionsOnSuggestionSelected,
- bool? autoFlipDirection,
Implementation
PlatformTypeAhead({
Key? key,
required this.suggestionsCallback,
required this.onSuggestionSelected,
required this.itemBuilder,
this.suggestionsBoxDecoration,
this.suggestionsBoxController,
this.debounceDuration,
this.loadingBuilder,
this.noItemsFoundBuilder,
this.errorBuilder,
this.transitionBuilder,
this.animationDuration,
this.direction,
this.animationStart = 0.25,
this.textFieldConfiguration,
this.suggestionsBoxVerticalOffset = 5.0,
this.getImmediateSuggestions,
this.hideOnLoading,
this.hideOnEmpty,
this.hideOnError,
this.hideSuggestionsOnKeyboardHide,
this.keepSuggestionsOnLoading,
this.keepSuggestionsOnSuggestionSelected,
this.autoFlipDirection,
}) : super(key: key);