load method

Future<void> load(
  1. String id
)

Loads the interstitial ad using the provided id.

Implementation

Future<void> load(String id) async {
  try {
    await _platform.invokeMethod('loadInterstitial', {"id": id});
  } on PlatformException catch (e) {
    print("Failed to load interstitial ad: '${e.message}'");
  }
}