copyWith method

ListedItemEntity copyWith({
  1. String? documentID,
  2. String? description,
  3. ActionEntity? action,
  4. String? imageId,
  5. PosSizeEntity? posSize,
})

Implementation

ListedItemEntity copyWith({
  String? documentID,
  String? description,
  ActionEntity? action,
  String? imageId,
  PosSizeEntity? posSize,
}) {
  return ListedItemEntity(
    description: description ?? this.description,
    action: action ?? this.action,
    imageId: imageId ?? this.imageId,
    posSize: posSize ?? this.posSize,
  );
}