copyWith method

  1. @override
FastAppInfoDocument copyWith({
  1. String? appName,
  2. String? appVersion,
  3. String? appAuthor,
  4. String? appIdentifier,
  5. String? appTermsOfServiceUrl,
  6. String? appPrivacyPolicyUrl,
  7. String? appDisclaimerUrl,
  8. String? supportEmail,
  9. String? bugReportEmail,
  10. String? facebookUrl,
  11. String? homepageUrl,
  12. String? instagramUrl,
  13. String? shareAppUrl,
  14. int? databaseVersion,
  15. bool? hasDisclaimer,
  16. String? googlePlayIdentifier,
  17. String? appStoreIdentifier,
  18. List<String>? productIdentifiers,
  19. String? premiumProductIdentifier,
  20. String? appBuildNumber,
  21. int? askForReviewMinLaunches,
  22. int? askForReviewMinDays,
  23. int? remindForReviewMinLaunches,
  24. int? remindForReviewMinDays,
  25. String? promoUrl,
  26. int? appLaunchCounter,
  27. int? previousDatabaseVersion,
  28. String? deviceLanguageCode,
  29. String? deviceCountryCode,
  30. List<Locale>? supportedLocales,
  31. DateTime? appDisclaimerLastModified,
  32. DateTime? appPrivacyPolicyLastModified,
  33. DateTime? appTermsOfServiceLastModified,
  34. String? twitterUrl,
  35. 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,
  );
}