load method

Future<void> load()

Implementation

Future<void> load() async {
  final error = await _creation;
  if (_isDestroyed) return;
  if (error != null) {
    final callback = mCallBack?.loadFail;
    if (callback == null) throw error;
    callback(-1, '${error.code}: ${error.message}');
    return;
  }
  await AdscopeSdk.invokeMethod(
    AMPSAdSdkMethodNames.nativeLoad,
    _typedArgs(),
  );
}