copyWith method
Implementation
TextLayerModel copyWith({
String? id,
String? type,
double? x,
double? y,
double? fontSize,
String? color,
String? font,
String? defaultText,
String? label,
}) {
return TextLayerModel(
id: id ?? this.id,
type: type ?? this.type,
x: x ?? this.x,
y: y ?? this.y,
fontSize: fontSize ?? this.fontSize,
color: color ?? this.color,
font: font ?? this.font,
defaultText: defaultText ?? this.defaultText,
label: label ?? this.label,
);
}