This package adds breadcrumbs for network changes to Sentry.
Add this package to the pubspec.yaml
file. Follow the instructions from connectivity_plus
(which is used by this library under the hood) if needed.
import 'package:sentry_connectivity/sentry_connectivity.dart';
import 'package:sentry_flutter/sentry_flutter.dart';
void main() {
SentryFlutter.init((options) {
options.addIntegration(ConnectivityIntegration());
});
}