handleTrackWithGroups method

void handleTrackWithGroups(
  1. MethodCall call
)

Implementation

void handleTrackWithGroups(MethodCall call) {
  Map<Object?, Object?> args = call.arguments as Map<Object?, Object?>;
  String eventName = args['eventName'] as String;
  dynamic properties = args['properties'];
  Map<String, dynamic> props = {
    ..._mixpanelProperties,
    ...(properties ?? {})
  };
  dynamic groups = args["groups"];
  track_with_groups(eventName, js.jsify(props), js.jsify(groups));
}