track method

void track(
  1. String eventName, {
  2. LDValue? data,
  3. num? metricValue,

Track custom events associated with the current context for data export or experimentation.

The eventName is the key associated with the event or experiment. data is an optional parameter for additional data to include in the event for data export. metricValue can be used to record numeric metric for experimentation.


void track(String eventName, {LDValue? data, num? metricValue}) {
  _client.track(eventName, data: data, metricValue: metricValue);