init method

void init()
override

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

Implementation

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