copyWith method

ReorderableEntity copyWith({
  1. Size? size,
  2. bool? isBuildingOffset,
})

Implementation

ReorderableEntity copyWith({
  Size? size,
  bool? isBuildingOffset,
}) =>
    ReorderableEntity(
      key: key,
      originalOrderId: originalOrderId,
      updatedOrderId: updatedOrderId,
      originalOffset: originalOffset,
      updatedOffset: updatedOffset,
      size: size ?? this.size,
      isBuildingOffset: isBuildingOffset ?? this.isBuildingOffset,
      hasSwappedOrder: hasSwappedOrder,
    );