captureEvent static method

Future<SentryId> captureEvent(
  1. SentryEvent event, {
  2. dynamic stackTrace,
  3. Hint? hint,
  4. ScopeCallback? withScope,
})

Reports an event to Sentry.io.

Implementation

static Future<SentryId> captureEvent(
  SentryEvent event, {
  dynamic stackTrace,
  Hint? hint,
  ScopeCallback? withScope,
}) =>
    _taskQueue.enqueue(
        () => _hub.captureEvent(
              event,
              stackTrace: stackTrace,
              hint: hint,
              withScope: withScope,
            ),
        SentryId.empty(),
        event.type != null
            ? DataCategory.fromItemType(event.type!)
            : DataCategory.unknown);