copyWith method
Creates a copy of this item with the given fields replaced.
To explicitly set label to null, use copyWithLabel instead.
Implementation
CirclifyItem copyWith({
Color? color,
double? value,
String? label,
}) {
return CirclifyItem(
id: id,
color: color ?? this.color,
value: value ?? this.value,
label: label ?? this.label,
);
}