RewardedVideoAdListener typedef

RewardedVideoAdListener = (void Function(RewardedVideoAdEvent? event, {int? rewardAmount, String? rewardType})?)

Signature for a RewardedVideoAd status change callback. The optional parameters are only used when the RewardedVideoAdEvent.rewarded event is sent, when they'll contain the reward amount and reward type that were configured for the AdMob ad unit when it was created. They will be null for all other events.

Implementation

typedef RewardedVideoAdListener = void Function(
  RewardedVideoAdEvent event, {
  String rewardType,
  int rewardAmount,
});