copyWith method

ShopEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. String? shortDescription,
  5. String? currency,
  6. StorageConditionsEntity? conditions,
})

Implementation

ShopEntity copyWith({
  String? documentID,
  String? appId,
  String? description,
  String? shortDescription,
  String? currency,
  StorageConditionsEntity? conditions,
}) {
  return ShopEntity(
    appId: appId ?? this.appId,
    description: description ?? this.description,
    shortDescription: shortDescription ?? this.shortDescription,
    currency: currency ?? this.currency,
    conditions: conditions ?? this.conditions,
  );
}