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

hashCode int
The hash code for this object.
no setteroverride
label String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool
getter/setter pair
value → T
final

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