copyWith method
TemplateModel
copyWith({
- String? id,
- String? name,
- String? ratio,
- CanvasModel? canvas,
- List<
LayerModel> ? layers,
Implementation
TemplateModel copyWith({
String? id,
String? name,
String? ratio,
CanvasModel? canvas,
List<LayerModel>? layers,
}) {
return TemplateModel(
id: id ?? this.id,
name: name ?? this.name,
ratio: ratio ?? this.ratio,
canvas: canvas ?? this.canvas,
layers: layers ?? this.layers,
);
}