Refactor core uses of FlutterError. (#30983)
Make FlutterError objects more structured so they can be displayed better in debugging tools such as Dart DevTools.
This commit is contained in:
@@ -16,7 +16,7 @@ void main() {
|
||||
handleUncaughtError:(Zone zone, ZoneDelegate delegate, Zone parent, Object error, StackTrace stackTrace) {
|
||||
FlutterError.reportError(FlutterErrorDetails(
|
||||
exception: error,
|
||||
context: 'In the Zone handleUncaughtError handler',
|
||||
context: ErrorDescription('In the Zone handleUncaughtError handler'),
|
||||
silent: false,
|
||||
));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user