MultiSelectorActions<T> mixin Utilities

A mixin that provides core functionality for multi-selection dialogs.

Contains methods for:

  • Managing item selection state
  • Handling dialog confirmation/cancellation
  • Filtering items via search
  • Organizing selected/unslected items

Used by MultiSelectorDialog to handle business logic.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCancelTap(BuildContext context, List<T> initialValue) → void
Handles dialog cancellation, reverting to initial values.
onConfirmTap(BuildContext context, List<T> selectedValues, void onConfirm(List<T>)?) → void
Handles dialog confirmation, returning selected values.
onItemCheckedChange(List<T> selectedValues, T value, bool checked) List<T>
Handles changes to an item's selection state.
onSearchTap(bool showSearch) bool
Toggles search visibility state.
separateSelected(List<MultiSelectorItem<T>> list) List<MultiSelectorItem<T>>
Organizes items into selected/unselected groups.
toString() String
A string representation of this object.
inherited
updateSearchQuery(String? val, List<MultiSelectorItem<T>> allItems) List<MultiSelectorItem<T>>
Filters items based on search query.

Operators

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