initialize method

  1. @override
Future<void> initialize({
  1. required String appKey,
  2. required String appSecret,
})
override

Implementation

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