options/options_view_service library
Classes
-
DefaultOptionViewHandler<
K, T> - TypeaheadService
-
Service that contains all registered typeahead handlers. Works with
OptionService
Mixins
-
DefaultOptionViewMixin2<
K, T>
Extensions
- BuildContextTypeaheadService on BuildContext
- TypeaheadFocusModeExt on TypeaheadFocusMode?
-
TypeaheadHandlerExtensions
on TypeaheadHandler<
K, T>
Properties
- optionViewService → TypeaheadService
-
no setter
Functions
-
defaultOptionViewHandler<
K, T> ({Icon? prefixIcon, String? placeholder, String noOptionsLabel = "N/A", OptionValueType? valueType, TypeaheadFocusMode? focusMode, bool showExpand = false, RenderSuggestionTile< K, T> ? renderSuggestionTile}) → TypeaheadOptionsAndHandler<K, T> -
renderSimpleTypeaheadOption<
K, T> ({required SuggestionElement< K, T> title, SuggestionElement<K, T> ? icon, bool isAdhocCreator = false}) → RenderSuggestionTile<K, T> - Makes it easy to produce a formatted suggestion tile by proving a SuggestionElement callback for the title and icon
Typedefs
-
RenderSuggestionTile<
K, T> = Widget Function(BuildContext context, KeyedOption< K, T> suggestion, {bool? isSelected, VoidCallback? onTap, SelectOption<K, T> ? selectOption}) -
SuggestionElement<
K, T> = dynamic Function(KeyedOption< K, T> suggestion)