handleTrack method

void handleTrack(
  1. MethodCall call
)

Implementation

void handleTrack(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 ?? {})
  };
  track(eventName, js.jsify(props));
}