copyWith method

  1. @override
StackTextItem copyWith({
  1. double? angle,
  2. Size? size,
  3. Offset? offset,
  4. StackItemStatus? status,
  5. bool? lockZOrder,
  6. 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,
  );
}