initMapkit function
Implementation
Future<void> initMapkit(
{required String apiKey,
String? locale,
String? userId,
Map<String, String> options = const {}}) async {
if (_isInit()) return;
initDartApi();
await const MapkitMethodChannel('runtime')
.invokeMethod('init', {'options': options});
I18nManagerFactory.setLocale(locale);
mapkit.setApiKey(apiKey);
if (userId != null) {
mapkit.setUserId(userId);
}
}