copyWith method

  1. @override
AppModel copyWith({
  1. String? documentID,
  2. String? ownerID,
  3. String? title,
  4. String? homeURL,
  5. String? email,
  6. String? description,
  7. AppStatus? appStatus,
  8. PublicMediumModel? anonymousProfilePhoto,
  9. AppHomePageReferencesModel? homePages,
  10. String? styleFamily,
  11. String? styleName,
  12. bool? autoPrivileged1,
  13. bool? isFeatured,
  14. bool? includeShippingAddress,
  15. bool? includeInvoiceAddress,
  16. bool? includeSubscriptions,
  17. String? welcomeMessage,
})
override

Implementation

@override
AppModel copyWith({
  String? documentID,
  String? ownerID,
  String? title,
  String? homeURL,
  String? email,
  String? description,
  AppStatus? appStatus,
  PublicMediumModel? anonymousProfilePhoto,
  AppHomePageReferencesModel? homePages,
  PublicMediumModel? logo,
  String? styleFamily,
  String? styleName,
  bool? autoPrivileged1,
  bool? isFeatured,
  bool? includeShippingAddress,
  bool? includeInvoiceAddress,
  bool? includeSubscriptions,
  String? welcomeMessage,
}) {
  return AppModel(
    documentID: documentID ?? this.documentID,
    ownerID: ownerID ?? this.ownerID,
    title: title ?? this.title,
    homeURL: homeURL ?? this.homeURL,
    email: email ?? this.email,
    description: description ?? this.description,
    appStatus: appStatus ?? this.appStatus,
    anonymousProfilePhoto:
        anonymousProfilePhoto ?? this.anonymousProfilePhoto,
    homePages: homePages ?? this.homePages,
    logo: logo ?? this.logo,
    styleFamily: styleFamily ?? this.styleFamily,
    styleName: styleName ?? this.styleName,
    autoPrivileged1: autoPrivileged1 ?? this.autoPrivileged1,
    isFeatured: isFeatured ?? this.isFeatured,
    includeShippingAddress:
        includeShippingAddress ?? this.includeShippingAddress,
    includeInvoiceAddress:
        includeInvoiceAddress ?? this.includeInvoiceAddress,
    includeSubscriptions: includeSubscriptions ?? this.includeSubscriptions,
    welcomeMessage: welcomeMessage ?? this.welcomeMessage,
  );
}