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