simulateReward method
Invokes the reward callback captured by show. Throws StateError if the ad has already been dismissed — a reward can't arrive after the ad's lifecycle has ended.
Implementation
void simulateReward(RewardEarned reward) {
if (_dismissed) {
throw StateError(
'simulateReward called after simulateDismissed — a reward cannot '
'arrive once the ad has already been dismissed.',
);
}
lastOnUserEarnedReward?.call(reward);
}