options/options_service library

Classes

KeyedOptionsHandler<K, T>
A base interface for helping to populate drop-downs and typeaheads. There are a couple of common mixins to cut down on boilerplate:
OptionHandlerPair<K, T>
OptionsHandler<T>
A base class for helping to populate drop-downs and typeaheads.
OptionsService

Enums

OptionMode

Extensions

BuildContextOptionService on BuildContext
IKeyedOptionHandlerCast on IKeyedOptionsHandler<K, V>

Constants

kDefaultNumOptions → const int

Functions

noopHandler<T>(String? key) OptionsHandler<T?>
noopKeyHandler<K, T>(String? key) KeyedOptionsHandler<K, T>
openPicker<K, V>(BuildContext context, {dynamic title, dynamic content, required Set<KeyedOption<K, V>> options}) Future<KeyedOption<K, V>?>
showPicker<K, V>(BuildContext context, {dynamic title, dynamic content, required Set<KeyedOption<K, V>> options, dynamic extraOptions}) Future<KeyedOption<K, V>?>

Typedefs

AdhocBuilder<T> = AdhocOption<T> Function(String message)