Skip to content

Commit f0c0a87

Browse files
committed
Add comment regarding onError and runZonedGuarded usage
1 parent 4504b51 commit f0c0a87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dart/lib/src/sentry.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ class Sentry {
3333
/// Initializes the SDK
3434
/// passing a [AppRunner] callback allows to run the app within its own error
3535
/// zone ([`runZonedGuarded`](https://api.dart.dev/stable/2.10.4/dart-async/runZonedGuarded.html))
36-
/// Starting with Flutter 3.3, this is not needed anymore, as the SDK will record errors using
37-
/// the [`onError`](https://api.flutter.dev/flutter/dart-ui/PlatformDispatcher/onError.html) callback.
36+
/// Starting with Flutter 3.3, the the SDK will record errors using the
37+
/// [`onError`](https://api.flutter.dev/flutter/dart-ui/PlatformDispatcher/onError.html) callback
38+
/// instead of running in an own error zone.
3839
static Future<void> init(
3940
OptionsConfiguration optionsConfiguration, {
4041
AppRunner? appRunner,

0 commit comments

Comments
 (0)