init static method

Future<void> init(
  1. String adUnitId, {
  2. bool testMode = false,
})

Implementation

static Future<void> init(String adUnitId, {bool testMode = false}) async {
  Map<String, dynamic> initValues = {
    "testMode": testMode,
    "adUnitId": adUnitId,
  };

  try {
    var result = await _channel.invokeMethod(INIT_METHOD, initValues);
    if (testMode) print('$result');
  } on PlatformException {
    return;
  }
}