copyWith method

  1. @override
ShopModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. String? shortDescription,
  5. String? currency,
  6. StorageConditionsModel? conditions,
})
override

Implementation

@override
ShopModel copyWith({
  String? documentID,
  String? appId,
  String? description,
  String? shortDescription,
  String? currency,
  StorageConditionsModel? conditions,
}) {
  return ShopModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    description: description ?? this.description,
    shortDescription: shortDescription ?? this.shortDescription,
    currency: currency ?? this.currency,
    conditions: conditions ?? this.conditions,
  );
}