init method

Future<Null> init({
  1. required String yandexMapKey,
})
override

Implementation

Future<Null> init({required String yandexMapKey}) async {
  try {
    print(methodChannel.name);
    await methodChannel
        .invokeMethod('initializeYandexMapKit', {'apiKey': yandexMapKey});
  } on PlatformException catch (e) {
    print("Failed to initialize Yandex Map Kit: '${e.message}'.");
  }
}