copyWith method
FastAppInfoDocument
copyWith({
- String? appName,
- String? appVersion,
- String? appAuthor,
- String? appIdentifier,
- String? appTermsOfServiceUrl,
- String? appPrivacyPolicyUrl,
- String? appDisclaimerUrl,
- String? supportEmail,
- String? bugReportEmail,
- String? facebookUrl,
- String? homepageUrl,
- String? instagramUrl,
- int? databaseVersion,
- bool? hasDisclaimer,
- String? googlePlayIdentifier,
- String? appStoreIdentifier,
- List<
String> ? productIdentifiers, - String? appBuildNumber,
- int? askForReviewMinLaunches,
- int? askForReviewMinDays,
- int? remindForReviewMinLaunches,
- int? remindForReviewMinDays,
- String? promoUrl,
- int? appLaunchCounter,
- int? previousDatabaseVersion,
- String? deviceLanguageCode,
- String? deviceCountryCode,
- List<
Locale> ? supportedLocales, - DateTime? appDisclaimerLastModified,
- DateTime? appPrivacyPolicyLastModified,
- DateTime? appTermsOfServiceLastModified,
- String? twitterUrl,
- String? osVersion,
override
Creates a copy of this TModel but with the given fields replaced with the new values.
For example:
var myModel2 = myModel1.copyWith(age: 42);
Implementation
@override
FastAppInfoDocument copyWith({
String? appName,
String? appVersion,
String? appAuthor,
String? appIdentifier,
String? appTermsOfServiceUrl,
String? appPrivacyPolicyUrl,
String? appDisclaimerUrl,
String? supportEmail,
String? bugReportEmail,
String? facebookUrl,
String? homepageUrl,
String? instagramUrl,
String? shareAppUrl,
int? databaseVersion,
bool? hasDisclaimer,
String? googlePlayIdentifier,
String? appStoreIdentifier,
List<String>? productIdentifiers,
String? premiumProductIdentifier,
String? appBuildNumber,
int? askForReviewMinLaunches,
int? askForReviewMinDays,
int? remindForReviewMinLaunches,
int? remindForReviewMinDays,
String? promoUrl,
int? appLaunchCounter,
int? previousDatabaseVersion,
String? deviceLanguageCode,
String? deviceCountryCode,
List<Locale>? supportedLocales,
DateTime? appDisclaimerLastModified,
DateTime? appPrivacyPolicyLastModified,
DateTime? appTermsOfServiceLastModified,
String? twitterUrl,
String? osVersion,
}) {
return FastAppInfoDocument(
appName: appName ?? this.appName,
appVersion: appVersion ?? this.appVersion,
appBuildNumber: appBuildNumber ?? this.appBuildNumber,
appAuthor: appAuthor ?? this.appAuthor,
appIdentifier: appIdentifier ?? this.appIdentifier,
appTermsOfServiceUrl: appTermsOfServiceUrl ?? this.appTermsOfServiceUrl,
appPrivacyPolicyUrl: appPrivacyPolicyUrl ?? this.appPrivacyPolicyUrl,
appDisclaimerUrl: appDisclaimerUrl ?? this.appDisclaimerUrl,
supportEmail: supportEmail ?? this.supportEmail,
bugReportEmail: bugReportEmail ?? this.bugReportEmail,
facebookUrl: facebookUrl ?? this.facebookUrl,
homepageUrl: homepageUrl ?? this.homepageUrl,
instagramUrl: instagramUrl ?? this.instagramUrl,
shareAppUrl: shareAppUrl ?? this.shareAppUrl,
databaseVersion: databaseVersion ?? this.databaseVersion,
hasDisclaimer: hasDisclaimer ?? this.hasDisclaimer,
googlePlayIdentifier: googlePlayIdentifier ?? this.googlePlayIdentifier,
appStoreIdentifier: appStoreIdentifier ?? this.appStoreIdentifier,
productIdentifiers: productIdentifiers ?? this.productIdentifiers,
premiumProductIdentifier:
premiumProductIdentifier ?? this.premiumProductIdentifier,
appLaunchCounter: appLaunchCounter ?? this.appLaunchCounter,
askForReviewMinLaunches:
askForReviewMinLaunches ?? this.askForReviewMinLaunches,
askForReviewMinDays: askForReviewMinDays ?? this.askForReviewMinDays,
remindForReviewMinLaunches:
remindForReviewMinLaunches ?? this.remindForReviewMinLaunches,
remindForReviewMinDays:
remindForReviewMinDays ?? this.remindForReviewMinDays,
promoUrl: promoUrl ?? this.promoUrl,
previousDatabaseVersion:
previousDatabaseVersion ?? this.previousDatabaseVersion,
deviceLanguageCode: deviceLanguageCode ?? this.deviceLanguageCode,
deviceCountryCode: deviceCountryCode ?? this.deviceCountryCode,
supportedLocales: supportedLocales ?? this.supportedLocales,
appDisclaimerLastModified:
appDisclaimerLastModified ?? this.appDisclaimerLastModified,
appPrivacyPolicyLastModified:
appPrivacyPolicyLastModified ?? this.appPrivacyPolicyLastModified,
appTermsOfServiceLastModified:
appTermsOfServiceLastModified ?? this.appTermsOfServiceLastModified,
twitterUrl: twitterUrl ?? this.twitterUrl,
osVersion: osVersion ?? this.osVersion,
);
}