TelemetryEvent constructor

TelemetryEvent({
  1. TelemetryEventKind? kind,
  2. String? name,
  3. Iterable<MapEntry<String, String>>? attributes,
  4. double? value,
  5. String? unit,
})

Implementation

factory TelemetryEvent({
  TelemetryEventKind? kind,
  $core.String? name,
  $core.Iterable<$core.MapEntry<$core.String, $core.String>>? attributes,
  $core.double? value,
  $core.String? unit,
}) {
  final result = create();
  if (kind != null) result.kind = kind;
  if (name != null) result.name = name;
  if (attributes != null) result.attributes.addEntries(attributes);
  if (value != null) result.value = value;
  if (unit != null) result.unit = unit;
  return result;
}