RewardCallback typedef

RewardCallback = void Function(String type, int amount)

Callback for rewarded ad completion.

type - The type of reward (e.g., 'coins', 'points'). amount - The amount of reward earned.

Implementation

typedef RewardCallback = void Function(String type, int amount);