copyWith method
ChartDrawing
copyWith({
- String? id,
- DrawingTool? tool,
- List<
DrawingPoint> ? points, - Color? color,
- double? strokeWidth,
- bool? isLocked,
- bool? isSelected,
- Map<
String, dynamic> ? properties,
Implementation
ChartDrawing copyWith({
String? id,
DrawingTool? tool,
List<DrawingPoint>? points,
Color? color,
double? strokeWidth,
bool? isLocked,
bool? isSelected,
Map<String, dynamic>? properties,
}) {
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,
);
}