identify static method

void identify(
  1. Map<String, dynamic> attributes
)

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);
  }
}