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