copyWith method
ChartDrawing
copyWith(
{ - String? id,
- DrawingTool? tool,
- List<DrawingPoint>? points,
- Color? color,
- double? strokeWidth,
- bool? isLocked,
- bool? isSelected,
- Map<String, dynamic>? properties,
- String? label,
})
Implementation
ChartDrawing copyWith({
String? id,
DrawingTool? tool,
List<DrawingPoint>? points,
Color? color,
double? strokeWidth,
bool? isLocked,
bool? isSelected,
Map<String, dynamic>? properties,
String? label,
}) {
return ChartDrawing(
id: id ?? this.id,
tool: tool ?? this.tool,
points: points ?? this.points,
color: color ?? this.color,
strokeWidth: strokeWidth ?? this.strokeWidth,
isLocked: isLocked ?? this.isLocked,
isSelected: isSelected ?? this.isSelected,
properties: properties ?? this.properties,
label: label ?? this.label,
);
}