ChipSelectionData<T> class

Choice option

Constructors

ChipSelectionData({required T value, required String label, String? tooltip, bool disabled = false, bool hidden = false, dynamic meta, ChipSelectionItemStyle? style, ChipSelectionItemStyle? activeStyle, void select(bool selected)?, bool selected = false})
Default Constructor
const

Properties

activeStyle ChipSelectionItemStyle?
Individual choice selected item style
final
disabled bool
Whether the choice is disabled or not
final
hashCode int
The hash code for this object.
no setteroverride
hidden bool
Whether the choice is hidden or displayed
final
label String
Represent as primary text
final
meta → dynamic
This prop is useful for choice builder
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
select → (void Function(bool selected)?)
Callback to select choice autofill by the system used in choice builder
final
selected bool
Whether the choice is selected or not autofill by the system used in choice builder
final
style ChipSelectionItemStyle?
Individual choice unselected item style
final
tooltip String?
Tooltip string to be used for the body area (where the label and avatar are) of the chip.
final
value → T
Value to return
final

Methods

copyWith({T? value, String? label, String? tooltip, bool? disabled, bool? hidden, dynamic meta, ChipSelectionItemStyle? style, ChipSelectionItemStyle? activeStyle, dynamic select(bool selected)?, bool? selected}) ChipSelectionData<T>
Creates a copy of this ChipSelection but with the given fields replaced with the new values.
merge(ChipSelectionData<T>? other) ChipSelectionData<T>
Creates a copy of this ChipSelectionData but with the given fields replaced with the new values.
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.
override

Static Methods

listFrom<R, E>({required List<E> source, required _ChipSelectionProp<E, R> value, required _ChipSelectionProp<E, String> label, _ChipSelectionProp<E, String>? tooltip, _ChipSelectionProp<E, bool>? disabled, _ChipSelectionProp<E, bool>? hidden, _ChipSelectionProp<E, dynamic>? meta, _ChipSelectionProp<E, ChipSelectionItemStyle>? style, _ChipSelectionProp<E, ChipSelectionItemStyle>? activeStyle}) List<ChipSelectionData<R>>
Helper to create choice items from any list