choice library

Classes

Choice<T>
Provide easy way to build inline, prompted, or custom choice widget with single or multiple selection
ChoiceAnchor
ChoiceConfirmButton
ChoiceConsumer<T>
ChoiceController<T>
Controller of the selection value and how it behaves
ChoiceData<T>
Choice data
ChoiceGroup
ChoiceGroupSort
ChoiceList<T>
ChoiceListError
ChoiceListLoader
ChoiceListPlaceholder
Placeholder widget for empty choice items
ChoiceModal<T>
ChoiceModalFooter
ChoiceModalHeader
ChoiceModalSeparator
ChoicePrompt
ChoiceProvider<T>
ChoiceSearch
ChoiceSearchController
Controller of the search value and how it behaves
ChoiceSearchField
ChoiceSearchToggle
ChoiceSingle
ChoiceText
Text widget that supports highlight
ChoiceValueChips<T>
ChoiceValueText<T>
InlineChoice<T>
Widget to create inline choice with single or multiple selection
PromptedChoice<T>
Widget to create prompted choice with single or multiple selection

Extensions

ChoiceDataGeneration on List<T>
Helper to create list of ChoiceData from any list

Typedefs

ChoiceAnchorBuilder<T> = Widget Function(ChoiceController<T> state, VoidCallback openModal)
ChoiceBuilder<T> = Widget Function(ChoiceController<T> state, Widget? child)
ChoiceDataProp<E, R> = R? Function(int index, E item)
Builder for option prop
ChoiceGroupBuilder = Widget Function(IndexedChoiceItemBuilder itemBuilder, int itemCount)
ChoiceGroupHeaderBuilder<T> = Widget Function(String name, List<int> indices)
ChoiceGroupItemBuilder = Widget Function(Widget header, Widget body)
ChoiceGroupResolver = String Function(int index)
ChoiceGroupSortResolver = int Function(String a, String b)
ChoiceItemBuilder = Widget Function()
ChoiceListBuilder = Widget Function(IndexedChoiceItemBuilder itemBuilder, int itemCount)
ChoiceModalClose = void Function({bool confirmed, VoidCallback? onClosed})
ChoicePromptBuilder<T> = Widget Function(ChoiceController<T> state, VoidCallback openModal)
ChoicePromptDelegate<T> = Future<List<T>?> Function(BuildContext context, Widget modal)
ChoiceSkipResolver<T> = bool Function(ChoiceController<T> state, int index)
ChoiceStateBuilder<T> = Widget Function(ChoiceController<T> state)
IndexedChoiceGroupItemBuilder = Widget Function(int index)
IndexedChoiceItemBuilder = Widget Function(int index)
IndexedChoiceStateBuilder<T> = Widget Function(ChoiceController<T> state, int index)