captureFeedback method

Future<SentryId> captureFeedback(
  1. SentryFeedback feedback, {
  2. Scope? scope,
  3. Hint? hint,
})

Reports the feedback to Sentry.io.

Implementation

Future<SentryId> captureFeedback(
  SentryFeedback feedback, {
  Scope? scope,
  Hint? hint,
}) {
  final feedbackEvent = SentryEvent(
    type: 'feedback',
    contexts: Contexts(feedback: feedback),
    level: SentryLevel.info,
  );

  return captureEvent(
    feedbackEvent,
    scope: scope,
    hint: hint,
  );
}