copyWith method
SpinnerItemData
copyWith({
- String? name,
- dynamic result,
- bool? selected,
- bool? isMutex,
- List<
SpinnerItemData> ? items,
Implementation
SpinnerItemData copyWith({
String? name,
dynamic result,
bool? selected,
// bool? highlighted,
bool? isMutex,
List<SpinnerItemData>? items,
}) =>
SpinnerItemData(
name: name ?? this.name,
result: result ?? this.result,
selected: selected ?? this.selected,
// highlighted: highlighted ?? this.highlighted,
isMutex: isMutex ?? this.isMutex,
items: items ?? this.items,
);