copyWith abstract method

StackItem<T> copyWith({
  1. Size? size,
  2. Offset? offset,
  3. double? angle,
  4. StackItemStatus? status,
  5. bool? lockZOrder,
  6. T? content,
})

Update content and return new instance

Implementation

StackItem<T> copyWith({
  Size? size,
  Offset? offset,
  double? angle,
  StackItemStatus? status,
  bool? lockZOrder,
  T? content,
});