send static method

Future<void> send(
  1. String signalType, {
  2. String? clientUser,
  3. Map<String, dynamic>? additionalPayload,
})

Implementation

static Future<void> send(
  String signalType, {
  String? clientUser,
  Map<String, dynamic>? additionalPayload,
}) async {
  final payload = await _telemetryProvider.enrich(additionalPayload);

  final stringifiedPayload = payload.map(
    (key, value) => MapEntry(key, value.toString()),
  );

  await TelemetrydecksdkPlatform.instance.send(
    signalType,
    clientUser: clientUser,
    additionalPayload: stringifiedPayload,
  );
}