We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlutterError.onError
Describe the bug Overrides on FlutterError.onError does not take effect. Overriding this error is useful for ignoring unnecessary errors.
To Reproduce
FlutterError.onError = (error) { if (error is SpecificError) return; FlutterError.presentError(error); } addTearDown(() => FlutterError.onError = FlutterError.presentError;
Expected behavior FlutterError.onError should be called. If the condition matched, error is not reported.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Should I create a PR to remove this line or replace this with FlutterError.onError?
https://github.com/fzyzcjy/flutter_convenient_test/blob/master/packages/convenient_test_dev/lib/src/functions/widget_tester.dart#L191
The text was updated successfully, but these errors were encountered:
Hi! Thanks for opening your first issue here! 😄
Sorry, something went wrong.
Hmm, looks like we can directly do
convenientTestRunAsyncEnhancedExceptionChecker = (e) { if (e is SpecificError) return; expect(e, isNull); }
to ensure we ignore the specific error.
No branches or pull requests
Describe the bug
Overrides on
FlutterError.onError
does not take effect. Overriding this error is useful for ignoring unnecessary errors.To Reproduce
FlutterError.onError
.Expected behavior
FlutterError.onError should be called. If the condition matched, error is not reported.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Should I create a PR to remove this line or replace this with
FlutterError.onError
?https://github.com/fzyzcjy/flutter_convenient_test/blob/master/packages/convenient_test_dev/lib/src/functions/widget_tester.dart#L191
The text was updated successfully, but these errors were encountered: