trackModelSwitch method

void trackModelSwitch({
  1. required String fromModel,
  2. required String toModel,
  3. String? reason,
})

Track a model switch.

Implementation

void trackModelSwitch({
  required String fromModel,
  required String toModel,
  String? reason,
}) {
  track(
    TelemetryEvent(
      name: 'model_switch',
      type: TelemetryEventType.modelSwitch,
      properties: {'from': fromModel, 'to': toModel, 'reason': ?reason},
    ),
  );
}