initializeWithApiKey method

  1. @override
Future<void> initializeWithApiKey({
  1. required String apiKey,
  2. required String bundleId,
})
override

Implementation

@override
Future<void> initializeWithApiKey({
  required String apiKey,
  required String bundleId,
}) async {
  try {
    await methodChannel.invokeMethod<void>('initializeWithApiKey', {
      'apiKey': apiKey,
      'bundleId': bundleId,
    });
  } on PlatformException {
    rethrow;
  } catch (e) {
    throw mapNativeError(e);
  }
}