TelemetrySender constructor

TelemetrySender({
  1. void sendEventData(
    1. String, [
    2. dynamic
    ])?,
  2. void sendErrorData(
    1. Error, [
    2. dynamic
    ])?,
  3. FutureOr<void> flush()?,
})

Implementation

factory TelemetrySender({
  void Function(
    _i2.String, [
    _i2.dynamic,
  ])? sendEventData,
  void Function(
    _i7.Error, [
    _i2.dynamic,
  ])? sendErrorData,
  _i4.FutureOr<void> Function()? flush,
}) =>
    TelemetrySender._(
      sendEventData:
          sendEventData == null ? null : _i5.allowInterop(sendEventData),
      sendErrorData:
          sendErrorData == null ? null : _i5.allowInterop(sendErrorData),
      flush: flush == null
          ? null
          : _i5.allowInterop(() => _i6.Promise.futureOr(() => flush())),
    );