copyWith method
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,
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,
);
}