copyWith method

AdsConfig copyWith({
  1. PlatformAdIds? bannerIds,
  2. PlatformAdIds? interstitialIds,
  3. PlatformAdIds? nativeIds,
  4. PlatformAdIds? appOpenIds,
  5. PlatformAdIds? rewardedIds,
  6. PlatformAdIds? directInterstitialIds,
  7. bool? bannerEnabled,
  8. bool? interstitialEnabled,
  9. bool? nativeEnabled,
  10. bool? appOpenEnabled,
  11. bool? rewardedEnabled,
  12. bool? adsEnabled,
  13. bool? directInterstitialEnabled,
  14. int? interstitialAfter,
  15. int? maxRetryAttempts,
  16. Duration? retryBaseDelay,
  17. bool? preloadEnabled,
  18. Duration? connectivityRecheckInterval,
})

Implementation

AdsConfig copyWith({
  PlatformAdIds? bannerIds,
  PlatformAdIds? interstitialIds,
  PlatformAdIds? nativeIds,
  PlatformAdIds? appOpenIds,
  PlatformAdIds? rewardedIds,
  PlatformAdIds? directInterstitialIds,
  bool? bannerEnabled,
  bool? interstitialEnabled,
  bool? nativeEnabled,
  bool? appOpenEnabled,
  bool? rewardedEnabled,
  bool? adsEnabled,
  bool? directInterstitialEnabled,
  int? interstitialAfter,
  int? maxRetryAttempts,
  Duration? retryBaseDelay,
  bool? preloadEnabled,
  Duration? connectivityRecheckInterval,
}) {
  return AdsConfig(
    bannerIds: bannerIds ?? this.bannerIds,
    interstitialIds: interstitialIds ?? this.interstitialIds,
    nativeIds: nativeIds ?? this.nativeIds,
    appOpenIds: appOpenIds ?? this.appOpenIds,
    rewardedIds: rewardedIds ?? this.rewardedIds,
    bannerEnabled: bannerEnabled ?? this.bannerEnabled,
    interstitialEnabled: interstitialEnabled ?? this.interstitialEnabled,
    nativeEnabled: nativeEnabled ?? this.nativeEnabled,
    appOpenEnabled: appOpenEnabled ?? this.appOpenEnabled,
    rewardedEnabled: rewardedEnabled ?? this.rewardedEnabled,
    adsEnabled: adsEnabled ?? this.adsEnabled,
    directInterstitialEnabled:
        directInterstitialEnabled ?? this.directInterstitialEnabled,
    interstitialAfter: interstitialAfter ?? this.interstitialAfter,
    maxRetryAttempts: maxRetryAttempts ?? this.maxRetryAttempts,
    retryBaseDelay: retryBaseDelay ?? this.retryBaseDelay,
    preloadEnabled: preloadEnabled ?? this.preloadEnabled,
    connectivityRecheckInterval:
        connectivityRecheckInterval ?? this.connectivityRecheckInterval,
    directInterstitialIds:
        directInterstitialIds ?? this.directInterstitialIds,
  );
}