show method

Future<void> show()
inherited

Implementation

Future<void> show() async {
  _channel.invokeMethod('show');
  var result = await _eventListener.waitFor([
    _CallbackName.onAdShown,
    _CallbackName.onAdFailedToShow,
  ]);
  if (result['name'] == _CallbackName.onAdFailedToShow.name) {
    throw AdShowError(result['code'], result['description']);
  }
}