showInterstitial static method

Future<void> showInterstitial({
  1. String? location,
  2. required ChartboostListener listener,
})

Implementation

static Future<void> showInterstitial(
    {String? location, required ChartboostListener listener}) async {
  try {
    _channel.setMethodCallHandler(
        (MethodCall call) async => handleMethod(call, listener));
    await _channel.invokeMethod('showInterstitial', {'location': location});
  } catch (e) {
    print(e.toString());
  }
}