HcPopupPropsMultiSelection<T> class
- Inheritance
-
- Object
- PopupProps<
T> - HcPopupPropsMultiSelection
Constructors
-
HcPopupPropsMultiSelection.bottomSheet({Widget? title, FlexFit fit = FlexFit.tight, bool showSearchBox = false, TextFieldProps searchFieldProps = const TextFieldProps(), ListViewProps listViewProps = const ListViewProps(), FavoriteItemProps<
T> favoriteItemProps = const FavoriteItemProps(), BottomSheetProps bottomSheetProps = const BottomSheetProps(), ScrollbarProps scrollbarProps = const ScrollbarProps(), Duration searchDelay = const Duration(seconds: 1), VoidCallback? onDismissed, EmptyBuilder? emptyBuilder, HcDropdownSearchPopupItemBuilder<T> ? itemBuilder, ErrorBuilder? errorBuilder, LoadingBuilder? loadingBuilder, bool showSelectedItems = false, HcDropdownSearchPopupItemEnabled<T> ? disabledItemFn, bool isFilterOnline = false, PopupBuilder? containerBuilder, BoxConstraints constraints = const BoxConstraints(maxHeight: 500), bool interceptCallBacks = false, OnItemAdded<T> ? onItemAdded, OnItemRemoved<T> ? onItemRemoved, HcDropdownSearchPopupItemBuilder<T> ? selectionWidget, ValidationMultiSelectionBuilder<T> ? validationWidgetBuilder, TextDirection textDirection = TextDirection.ltr}) -
const
-
HcPopupPropsMultiSelection.dialog({Widget? title, FlexFit fit = FlexFit.tight, bool showSearchBox = false, TextFieldProps searchFieldProps = const TextFieldProps(), ScrollbarProps scrollbarProps = const ScrollbarProps(), ListViewProps listViewProps = const ListViewProps(), FavoriteItemProps<
T> favoriteItemProps = const FavoriteItemProps(), DialogProps dialogProps = const DialogProps(), Duration searchDelay = const Duration(seconds: 1), VoidCallback? onDismissed, EmptyBuilder? emptyBuilder, HcDropdownSearchPopupItemBuilder<T> ? itemBuilder, ErrorBuilder? errorBuilder, LoadingBuilder? loadingBuilder, bool showSelectedItems = false, HcDropdownSearchPopupItemEnabled<T> ? disabledItemFn, bool isFilterOnline = false, PopupBuilder? containerBuilder, BoxConstraints constraints = const BoxConstraints(minWidth: 500, maxWidth: 500, maxHeight: 600), bool interceptCallBacks = false, OnItemAdded<T> ? onItemAdded, OnItemRemoved<T> ? onItemRemoved, HcDropdownSearchPopupItemBuilder<T> ? selectionWidget, ValidationMultiSelectionBuilder<T> ? validationWidgetBuilder, TextDirection textDirection = TextDirection.ltr}) -
const
-
HcPopupPropsMultiSelection.from(PopupProps<
T> popupProps) -
const
-
HcPopupPropsMultiSelection.modalBottomSheet({Widget? title, bool isFilterOnline = false, FlexFit fit = FlexFit.tight, HcDropdownSearchPopupItemBuilder<
T> ? itemBuilder, HcDropdownSearchPopupItemEnabled<T> ? disabledItemFn, bool showSearchBox = false, TextFieldProps searchFieldProps = const TextFieldProps(), FavoriteItemProps<T> favoriteItemProps = const FavoriteItemProps(), 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, OnItemAdded<T> ? onItemAdded, OnItemRemoved<T> ? onItemRemoved, HcDropdownSearchPopupItemBuilder<T> ? selectionWidget, ValidationMultiSelectionBuilder<T> ? validationWidgetBuilder, TextDirection textDirection = TextDirection.ltr}) -
const
Properties
- bottomSheetProps → BottomSheetProps
-
BottomSheet mode props
finalinherited
- 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
→ HcDropdownSearchPopupItemEnabled<
T> ? -
defines if an item of the popup is enabled or not, if the item is disabled,
it cannot be clicked
finalinherited
- emptyBuilder → EmptyBuilder?
-
custom layout for empty results
finalinherited
- errorBuilder → ErrorBuilder?
-
custom layout for error
finalinherited
-
favoriteItemProps
→ FavoriteItemProps<
T> -
favorite items props
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
- interceptCallBacks → bool
-
if true , the callbacks (onTap, onLongClick...) will be handled by the user
finalinherited
- isFilterOnline → bool
-
true if the filter on items is applied onlie (via API/DB/...)
finalinherited
-
itemBuilder
→ HcDropdownSearchPopupItemBuilder<
T> ? -
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 → Mode
-
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
- 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
-
selectionWidget
→ HcDropdownSearchPopupItemBuilder<
T> ? -
widget used to show checked items in multiSelection mode
final
- 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
- textDirection → TextDirection
-
final
- title → Widget?
-
popup title
finalinherited
-
validationWidgetBuilder
→ 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