copyWith method

  1. @override
MemberModel copyWith({
  1. String? documentID,
  2. String? name,
  3. List<MemberSubscriptionModel>? subscriptions,
  4. List<String>? subscriptionsAsStrArr,
  5. PublicMediumModel? photo,
  6. String? photoURL,
  7. String? shipStreet1,
  8. String? shipStreet2,
  9. String? shipCity,
  10. String? shipState,
  11. String? postcode,
  12. String? country,
  13. bool? invoiceSame,
  14. String? invoiceStreet1,
  15. String? invoiceStreet2,
  16. String? invoiceCity,
  17. String? invoiceState,
  18. String? invoicePostcode,
  19. String? invoiceCountry,
  20. String? email,
  21. bool? isAnonymous,
})
override

Implementation

@override
MemberModel copyWith({
  String? documentID,
  String? name,
  List<MemberSubscriptionModel>? subscriptions,
  List<String>? subscriptionsAsStrArr,
  PublicMediumModel? photo,
  String? photoURL,
  String? shipStreet1,
  String? shipStreet2,
  String? shipCity,
  String? shipState,
  String? postcode,
  String? country,
  bool? invoiceSame,
  String? invoiceStreet1,
  String? invoiceStreet2,
  String? invoiceCity,
  String? invoiceState,
  String? invoicePostcode,
  String? invoiceCountry,
  String? email,
  bool? isAnonymous,
}) {
  return MemberModel(
    documentID: documentID ?? this.documentID,
    name: name ?? this.name,
    subscriptions: subscriptions ?? this.subscriptions,
    subscriptionsAsStrArr:
        subscriptionsAsStrArr ?? this.subscriptionsAsStrArr,
    photo: photo ?? this.photo,
    photoURL: photoURL ?? this.photoURL,
    shipStreet1: shipStreet1 ?? this.shipStreet1,
    shipStreet2: shipStreet2 ?? this.shipStreet2,
    shipCity: shipCity ?? this.shipCity,
    shipState: shipState ?? this.shipState,
    postcode: postcode ?? this.postcode,
    country: country ?? this.country,
    invoiceSame: invoiceSame ?? this.invoiceSame,
    invoiceStreet1: invoiceStreet1 ?? this.invoiceStreet1,
    invoiceStreet2: invoiceStreet2 ?? this.invoiceStreet2,
    invoiceCity: invoiceCity ?? this.invoiceCity,
    invoiceState: invoiceState ?? this.invoiceState,
    invoicePostcode: invoicePostcode ?? this.invoicePostcode,
    invoiceCountry: invoiceCountry ?? this.invoiceCountry,
    email: email ?? this.email,
    isAnonymous: isAnonymous ?? this.isAnonymous,
  );
}