copyWith method
ShapeLayerModel
copyWith(
{ - String? id,
- String? type,
- double? x,
- double? y,
- String? shapeType,
- double? width,
- double? height,
- String? fillColor,
- String? strokeColor,
- double? strokeWidth,
})
Implementation
ShapeLayerModel copyWith({
String? id,
String? type,
double? x,
double? y,
String? shapeType,
double? width,
double? height,
String? fillColor,
String? strokeColor,
double? strokeWidth,
}) {
return ShapeLayerModel(
id: id ?? this.id,
type: type ?? this.type,
x: x ?? this.x,
y: y ?? this.y,
shapeType: shapeType ?? this.shapeType,
width: width ?? this.width,
height: height ?? this.height,
fillColor: fillColor ?? this.fillColor,
strokeColor: strokeColor ?? this.strokeColor,
strokeWidth: strokeWidth ?? this.strokeWidth,
);
}