copyWith method
Creates a copy of this shape with optional parameter overrides.
Implementation
WhiteboardShape copyWith({
WhiteboardShapeType? type,
List<Offset>? points,
Offset? start,
Offset? end,
String? text,
Color? color,
double? thickness,
LineType? lineType,
String? fontFamily,
double? fontSize,
ui.Image? image,
String? imageSrc,
}) {
return WhiteboardShape(
type: type ?? this.type,
points: points ?? this.points,
start: start ?? this.start,
end: end ?? this.end,
text: text ?? this.text,
color: color ?? this.color,
thickness: thickness ?? this.thickness,
lineType: lineType ?? this.lineType,
fontFamily: fontFamily ?? this.fontFamily,
fontSize: fontSize ?? this.fontSize,
image: image ?? this.image,
imageSrc: imageSrc ?? this.imageSrc,
);
}