copyWith method

BoardItemState copyWith({
  1. int? listIndex,
  2. int? itemIndex,
  3. Widget? widget,
  4. Offset? position,
  5. Size? size,
})

Implementation

BoardItemState copyWith({
  int? listIndex,
  int? itemIndex,
  Widget? widget,
  Offset? position,
  Size? size,
}) {
  return BoardItemState(
    listIndex: listIndex ?? this.listIndex,
    itemIndex: itemIndex ?? this.itemIndex,
    widget: widget ?? this.widget,
    position: position ?? this.position,
    size: size ?? this.size,
  );
}