This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -672,7 +672,7 @@ class FlutterErrorDetails with Diagnosticable {
672
672
super .debugFillProperties (properties);
673
673
final DiagnosticsNode verb = ErrorDescription ('thrown${ context != null ? ErrorDescription (" $context " ) : "" }' );
674
674
final Diagnosticable ? diagnosticable = _exceptionToDiagnosticable ();
675
- if (exception is NullThrownError ) {
675
+ if (exception is NullThrownError ) { // ignore: deprecated_member_use
676
676
properties.add (ErrorDescription ('The null value was $verb .' ));
677
677
} else if (exception is num ) {
678
678
properties.add (ErrorDescription ('The number $exception was $verb .' ));
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ void main() async {
15
15
try {
16
16
await compute (throwNull, null );
17
17
} catch (e) {
18
- if (e is ! TypeError && e is ! NullThrownError ) {
18
+ if (e is ! TypeError && e is ! NullThrownError ) { // ignore: deprecated_member_use
19
19
throw Exception ('compute returned bad result' );
20
20
}
21
21
}
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ void main() {
60
60
);
61
61
expect (
62
62
FlutterErrorDetails (
63
- exception: NullThrownError (),
63
+ exception: NullThrownError (), // ignore: deprecated_member_use
64
64
library: 'LIBRARY' ,
65
65
context: ErrorDescription ('CONTEXTING' ),
66
66
informationCollector: () sync * {
@@ -113,6 +113,7 @@ void main() {
113
113
'═════════════════════════════════════════════════════════════════\n ' ,
114
114
);
115
115
expect (
116
+ // ignore: deprecated_member_use
116
117
FlutterErrorDetails (exception: NullThrownError ()).toString (),
117
118
'══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞══════════════════════\n '
118
119
'The null value was thrown.\n '
You can’t perform that action at this time.
0 commit comments