copyWith method

FastRewardedAdBlocEventPayload copyWith({
  1. FastAdInfo? adInfo,
  2. String? country,
  3. dynamic error,
  4. bool? isAdLoaded,
  5. RewardItem? reward,
  6. Duration? blockDuration,
})

Implementation

FastRewardedAdBlocEventPayload copyWith({
  FastAdInfo? adInfo,
  String? country,
  dynamic error,
  bool? isAdLoaded,
  RewardItem? reward,
  Duration? blockDuration,
}) {
  return FastRewardedAdBlocEventPayload(
    adInfo: adInfo ?? this.adInfo,
    country: country ?? this.country,
    error: error ?? this.error,
    reward: reward ?? this.reward,
    blockDuration: blockDuration ?? this.blockDuration,
  );
}