getRewardedAdState static method
This method returns the current AdState of the requested ad.
adUnitId
- The ID of the rewarded ad unit.
Implementation
static Future<AdState> getRewardedAdState(String adUnitId) async {
final String state = await _channel.invokeMethod(
rewardedAdStateMethod,
{adUnitIdParameter: adUnitId},
);
return _adStateFromString(state);
}