identify static method
Implementation
static void identify(Map<String, dynamic> attributes) {
if (attributes.isNotEmpty) {
final jsConstructor = globalContext['Object'] as JSFunction;
final attributesObj = jsConstructor.callAsConstructor() as JSObject;
attributes.forEach((key, value) {
attributesObj[key] = value;
});
plotlineFunc?.callAsFunction(null, "identify".toJS, attributesObj);
}
}