MultiSelectorItem<T> class
A model class used to represent a selectable item in the multi-selector.
Example usage:
// Positional constructor (simpler)
MultiSelectorItem('value1', 'Label 1')
// Named constructor (more explicit)
MultiSelectorItem(value: 'value1', label: 'Label 1')
Constructors
- MultiSelectorItem(T value, String label, {bool selected = false})
- Creates a MultiSelectorItem with positional parameters.
- MultiSelectorItem.named({required T value, required String label, bool selected = false})
- Creates a MultiSelectorItem with named parameters.
Properties
Methods
-
copyWith(
{T? value, String? label, bool? selected}) → MultiSelectorItem< T> - Creates a copy of this item with the given fields replaced with new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override