copyWith method
StackDrawItem
copyWith({
- Size? size,
- Offset? offset,
- double? angle,
- StackItemStatus? status,
- bool? lockZOrder,
- DrawItemContent? content,
override
Update content and return new instance
Implementation
@override
StackDrawItem copyWith({
Size? size,
Offset? offset,
double? angle,
StackItemStatus? status,
bool? lockZOrder,
DrawItemContent? content,
}) {
return StackDrawItem(
id: id,
size: size ?? this.size,
offset: offset ?? this.offset,
angle: angle ?? this.angle,
status: status ?? this.status,
lockZOrder: lockZOrder ?? this.lockZOrder,
content: content ?? this.content,
);
}