Ignore body_might_complete_normally_catch_error violations (#105795)

This commit is contained in:
Sam Rawlins
2022-06-16 16:12:06 -07:00
committed by GitHub
parent 32b22b85de
commit f104be7ae9
5 changed files with 24 additions and 3 deletions

View File

@@ -45,6 +45,9 @@ void main() {
final BinaryMessenger delegate = TestDelegate();
final Future<ByteData?>? future = delegate.send('', null);
expect(future, isNotNull);
// TODO(srawlins): Fix this static issue,
// https://github.com/flutter/flutter/issues/105750.
// ignore: body_might_complete_normally_catch_error
await future!.catchError((Object error) { });
try {
await TestDefaultBinaryMessenger(delegate).send('', null);