copyWith method

BoutiqueWeebi copyWith({
  1. int? id,
  2. AddressWeebi? addressFull,
  3. String? boutiqueId,
  4. String? name,
  5. Phone? phone,
  6. String? mail,
  7. DateTime? updateDate,
  8. DateTime? creationDate,
  9. bool? status,
  10. DateTime? statusUpdateDate,
  11. double? promo,
  12. DateTime? promoStart,
  13. DateTime? promoEnd,
  14. PhotoSource? logoSource,
  15. String? logoPath,
  16. String? languageCode,
  17. String? currencyCode,
  18. bool? isDualCurrencyEnabled,
  19. String? secondaryDisplayCurrency,
  20. BusinessRules? businessRules,
})

Implementation

BoutiqueWeebi copyWith({
  int? id,
  AddressWeebi? addressFull,
  String? boutiqueId,
  String? name,
  Phone? phone,
  String? mail,
  DateTime? updateDate,
  DateTime? creationDate,
  bool? status,
  DateTime? statusUpdateDate,
  double? promo,
  DateTime? promoStart,
  DateTime? promoEnd,
  PhotoSource? logoSource,
  String? logoPath,
  String? languageCode,
  String? currencyCode,
  bool? isDualCurrencyEnabled,
  String? secondaryDisplayCurrency,
  BusinessRules? businessRules,
}) {
  return BoutiqueWeebi(
    id: id ?? this.id,
    boutiqueId: boutiqueId ?? this.boutiqueId,
    name: name ?? this.name,
    phone: phone ?? this.phone,
    mail: mail ?? this.mail,
    addressFull: addressFull ?? this.addressFull,
    creationDate: creationDate ?? this.creationDate,
    updateDate: updateDate ?? this.updateDate,
    status: status ?? this.status,
    statusUpdateDate: statusUpdateDate ?? this.statusUpdateDate,
    logoSource: logoSource ?? this.logoSource,
    logoPath: logoPath ?? this.logoPath,
    promo: promo ?? this.promo,
    promoStart: promoStart ?? this.promoStart,
    promoEnd: promoEnd ?? this.promoEnd,
    languageCode: languageCode ?? this.languageCode,
    currencyCode: currencyCode ?? this.currencyCode,
    isDualCurrencyEnabled:
        isDualCurrencyEnabled ?? this.isDualCurrencyEnabled,
    secondaryDisplayCurrency:
        secondaryDisplayCurrency ?? this.secondaryDisplayCurrency,
    businessRules: businessRules ?? this.businessRules,
  );
}