init method
Implementation
Future<void> init(String apiKey, {String? userId}) async {
Map<String, dynamic> properties = _baseProperties();
properties['apiKey'] = apiKey;
if (userId != null) {
properties['userId'] = userId;
}
return await _channel.invokeMethod('init', jsonEncode(properties));
}