copyWith static method

AdModuleWithCallBacks copyWith({
  1. dynamic onCloseEvent()?,
  2. dynamic onFailed()?,
  3. dynamic onRewardSkip()?,
  4. dynamic onLoadFailed()?,
  5. dynamic onAdStarted()?,
  6. dynamic onAdLoaded()?,
})

Implementation

static AdModuleWithCallBacks copyWith({
  Function()? onCloseEvent,
  Function()? onFailed,
  Function()? onRewardSkip,
  Function()? onLoadFailed,
  Function()? onAdStarted,
  Function()? onAdLoaded,
}) {
  return AdModuleWithCallBacks(
    onAdLoaded: onAdLoaded,
    onAdStarted: onAdStarted,
    onFailed: onFailed,
    onLoadFailed: onLoadFailed,
    onRewardSkip: onRewardSkip,
    onCloseEvent: onCloseEvent,
  );
}