track method

Future<bool> track(
  1. String event, {
  2. Map<String, dynamic>? properties,
})

Implementation

Future<bool> track(
  String event, {
  Map<String, dynamic>? properties,
}) async {
  return await _makeHttpCall(endpoint: "track", body: {
    "event": event,
    if (properties != null) "properties": properties,
    if (_userId != null) "userId": _userId,
    if (_groupId != null) "context": {"groupId": _groupId},
  });
}