init method

void init()
override

Initialize the ad. This can be called only by the ad

Implementation

void init() async {
  channel.setMethodCallHandler(_handleMessages);
  await MobileAds.pluginChannel.invokeMethod('initRewardedAd', {'id': id});
}