How can you determine how often your users experiences bugs?
Whenever an error occurs, create a report containing the
error that occurred and the associated stacktrace.
You can then send the report to an error tracking
service, such as Bugsnag, Fabric, Firebase Crashlytics, Rollbar, or Sentry.

The error tracking service aggregates all of the crashes your users
experience and groups them together. This allows you to know how often your
app fails and where the users run into trouble.

In this recipe, learn how to report errors to the
Sentry crash reporting service using
the following steps:

Get a DSN from Sentry.

Import the Flutter Sentry package

Initialize the Sentry SDK

Capture errors programmatically

1. Get a DSN from Sentry

Before reporting errors to Sentry, you need a “DSN” to uniquely identify
your app with the Sentry.io service.