PopupPropsMultiSelection<T> class

Inheritance

Constructors

PopupPropsMultiSelection.bottomSheet({Widget? title, FlexFit fit = FlexFit.tight, bool showSearchBox = false, TextFieldProps searchFieldProps = const TextFieldProps(), ListViewProps listViewProps = const ListViewProps(), SuggestedItemProps<T> suggestedItemProps = const SuggestedItemProps(), BottomSheetProps bottomSheetProps = const BottomSheetProps(), ScrollbarProps scrollbarProps = const ScrollbarProps(), Duration searchDelay = const Duration(seconds: 1), VoidCallback? onDismissed, EmptyBuilder? emptyBuilder, DropdownSearchPopupItemBuilder<T>? itemBuilder, ErrorBuilder? errorBuilder, LoadingBuilder? loadingBuilder, bool showSelectedItems = false, DropdownSearchPopupItemEnabled<T>? disabledItemFn, bool disableFilter = false, bool cacheItems = false, PopupBuilder? containerBuilder, BoxConstraints constraints = const BoxConstraints(maxHeight: 500), bool interceptCallBacks = false, InfiniteScrollProps? infiniteScrollProps, ValueChanged<List<T>>? onItemsLoaded, ClickProps itemClickProps = const ClickProps(), OnItemAdded<T>? onItemAdded, OnItemRemoved<T>? onItemRemoved, DropdownSearchPopupItemBuilder<T>? checkBoxBuilder, ValidationMultiSelectionBuilder<T>? validationBuilder, TextDirection textDirection = TextDirection.ltr})
const
PopupPropsMultiSelection.dialog({Widget? title, FlexFit fit = FlexFit.tight, bool showSearchBox = false, TextFieldProps searchFieldProps = const TextFieldProps(), ScrollbarProps scrollbarProps = const ScrollbarProps(), ListViewProps listViewProps = const ListViewProps(), SuggestedItemProps<T> suggestedItemProps = const SuggestedItemProps(), DialogProps dialogProps = const DialogProps(), Duration searchDelay = const Duration(seconds: 1), VoidCallback? onDismissed, EmptyBuilder? emptyBuilder, DropdownSearchPopupItemBuilder<T>? itemBuilder, ErrorBuilder? errorBuilder, LoadingBuilder? loadingBuilder, bool showSelectedItems = false, DropdownSearchPopupItemEnabled<T>? disabledItemFn, bool disableFilter = false, bool cacheItems = false, PopupBuilder? containerBuilder, BoxConstraints constraints = const BoxConstraints(minWidth: 500, maxWidth: 500, maxHeight: 600), bool interceptCallBacks = false, InfiniteScrollProps? infiniteScrollProps, ValueChanged<List<T>>? onItemsLoaded, ClickProps itemClickProps = const ClickProps(), OnItemAdded<T>? onItemAdded, OnItemRemoved<T>? onItemRemoved, DropdownSearchPopupItemBuilder<T>? checkBoxBuilder, ValidationMultiSelectionBuilder<T>? validationBuilder, TextDirection textDirection = TextDirection.ltr})
const
PopupPropsMultiSelection.from(PopupProps<T> popupProps)
PopupPropsMultiSelection.menu({Widget? title, FlexFit fit = FlexFit.tight, bool showSearchBox = false, TextFieldProps searchFieldProps = const TextFieldProps(), MenuProps menuProps = const MenuProps(), SuggestedItemProps<T> suggestedItemProps = const SuggestedItemProps(), ScrollbarProps scrollbarProps = const ScrollbarProps(), ListViewProps listViewProps = const ListViewProps(), Duration searchDelay = const Duration(seconds: 1), VoidCallback? onDismissed, EmptyBuilder? emptyBuilder, DropdownSearchPopupItemBuilder<T>? itemBuilder, ErrorBuilder? errorBuilder, LoadingBuilder? loadingBuilder, bool showSelectedItems = false, DropdownSearchPopupItemEnabled<T>? disabledItemFn, bool disableFilter = false, bool cacheItems = false, PopupBuilder? containerBuilder, BoxConstraints constraints = const BoxConstraints(maxHeight: 350), bool interceptCallBacks = false, InfiniteScrollProps? infiniteScrollProps, ValueChanged<List<T>>? onItemsLoaded, ClickProps itemClickProps = const ClickProps(), OnItemAdded<T>? onItemAdded, OnItemRemoved<T>? onItemRemoved, DropdownSearchPopupItemBuilder<T>? checkBoxBuilder, ValidationMultiSelectionBuilder<T>? validationBuilder, TextDirection textDirection = TextDirection.ltr})
const
PopupPropsMultiSelection.modalBottomSheet({Widget? title, bool disableFilter = false, bool cacheItems = false, FlexFit fit = FlexFit.tight, DropdownSearchPopupItemBuilder<T>? itemBuilder, DropdownSearchPopupItemEnabled<T>? disabledItemFn, bool showSearchBox = false, TextFieldProps searchFieldProps = const TextFieldProps(), SuggestedItemProps<T> suggestedItemProps = const SuggestedItemProps(), ModalBottomSheetProps modalBottomSheetProps = const ModalBottomSheetProps(), ScrollbarProps scrollbarProps = const ScrollbarProps(), ListViewProps listViewProps = const ListViewProps(), Duration searchDelay = const Duration(seconds: 1), VoidCallback? onDismissed, EmptyBuilder? emptyBuilder, ErrorBuilder? errorBuilder, LoadingBuilder? loadingBuilder, bool showSelectedItems = false, PopupBuilder? containerBuilder, BoxConstraints constraints = const BoxConstraints(maxHeight: 500), bool interceptCallBacks = false, InfiniteScrollProps? infiniteScrollProps, ValueChanged<List<T>>? onItemsLoaded, ClickProps itemClickProps = const ClickProps(), OnItemAdded<T>? onItemAdded, OnItemRemoved<T>? onItemRemoved, DropdownSearchPopupItemBuilder<T>? checkBoxBuilder, ValidationMultiSelectionBuilder<T>? validationBuilder, TextDirection textDirection = TextDirection.ltr})
const

Properties

bottomSheetProps BottomSheetProps
BottomSheet mode props
finalinherited
cacheItems bool
if true, once all items are loaded, filtering is applied on cached items (no need to re call the API to get items) cacheItems and disableFilter could not be both true
finalinherited
checkBoxBuilder DropdownSearchPopupItemBuilder<T>?
widget used to show checked items in multiSelection mode
final
constraints BoxConstraints
popup constraints
finalinherited
containerBuilder PopupBuilder?
used as container to the popup widget this could be very useful if you want to add extra actions/widget to the popup the popup widget is considered as a child
finalinherited
dialogProps DialogProps
dialog mode props
finalinherited
disabledItemFn DropdownSearchPopupItemEnabled<T>?
defines if an item of the popup is enabled or not, if the item is disabled, it cannot be clicked
finalinherited
disableFilter bool
false if the filter on items is applied by the plugin true if you want to handle by yourself the filtering (data already filtered by DB, API, ....)
finalinherited
emptyBuilder EmptyBuilder?
custom layout for empty results
finalinherited
errorBuilder ErrorBuilder?
custom layout for error
finalinherited
fit FlexFit
fit height depending on nb of result or keep height fix.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
infiniteScrollProps InfiniteScrollProps?
infinite scroll params like skip (offset), take,...
finalinherited
interceptCallBacks bool
if true , the callbacks (onTap, onLongClick...) will be handled by the user
finalinherited
itemBuilder DropdownSearchPopupItemBuilder<T>?
custom UI for the item
finalinherited
itemClickProps ClickProps
properties of click
finalinherited
listViewProps ListViewProps
props for selection list view
finalinherited
loadingBuilder LoadingBuilder?
custom layout for loading items
finalinherited
Menu mode props
finalinherited
modalBottomSheetProps ModalBottomSheetProps
ModalBottomSheet mode props
finalinherited
mode PopupMode
popup mode
finalinherited
onDismissed VoidCallback?
called when popup is dismissed
finalinherited
onItemAdded OnItemAdded<T>?
called when a new item added on Multi selection mode
final
onItemRemoved OnItemRemoved<T>?
called when a new item added on Multi selection mode
final
onItemsLoaded ValueChanged<List<T>>?
called when loading new items
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollbarProps ScrollbarProps
scrollbar properties
finalinherited
searchDelay Duration
callback executed before applying value change delay before searching, change it to Duration(milliseconds: 0) if you do not use online search
finalinherited
searchFieldProps TextFieldProps
object that passes all props to search field
finalinherited
showSearchBox bool
the search box will be shown if true, hidden otherwise
finalinherited
showSelectedItems bool
select the selected item in the menu/dialog/bottomSheet of items
finalinherited
suggestedItemProps SuggestedItemProps<T>
suggested items props
finalinherited
textDirection TextDirection
final
title Widget?
popup title
finalinherited
validationBuilder ValidationMultiSelectionBuilder<T>?
widget used to validate items in multiSelection mode
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited