onRewarded method

  1. @override
void onRewarded(
  1. String id,
  2. RewardedEvent reward
)
override

Implementation

@override
void onRewarded(String id, RewardedEvent reward) {
  final callbacks = FlutterYandexAds.getRewarded(id);
  if (callbacks?.onImpression != null) {
    callbacks?.onReward!(reward);
  }
}