diff --git a/analysis_options.yaml b/analysis_options.yaml index 49eb4d014..9f2ba5e67 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,9 +1,5 @@ -# Specify analysis options. -# -# This file is a copy of analysis_options.yaml from flutter repo -# as of 2023-12-18, but with some modifications marked with -# "DIFFERENT FROM FLUTTER/FLUTTER" below. The file is expected to -# be kept in sync with the master file from the flutter repo. +# This file is a copy of analysis_options.yaml from flutter/packages repo +# as of 2024-03-07. analyzer: language: diff --git a/packages/messageport/example/integration_test/messageport_test.dart b/packages/messageport/example/integration_test/messageport_test.dart index efdca5a1d..70cb0f2a8 100644 --- a/packages/messageport/example/integration_test/messageport_test.dart +++ b/packages/messageport/example/integration_test/messageport_test.dart @@ -26,7 +26,7 @@ void main() { testWidgets('Create remote port', (WidgetTester tester) async { final LocalPort localPort = await LocalPort.create(kTestPort); - localPort.register((dynamic message, [RemotePort? remotePort]) => () {}); + localPort.register((dynamic message, [RemotePort? remotePort]) {}); final RemotePort remotePort = await RemotePort.connect(kTestAppId, kTestPort); @@ -40,7 +40,7 @@ void main() { (WidgetTester tester) async { final LocalPort localPort = await LocalPort.create(kTestPort, trusted: false); - localPort.register((dynamic message, [RemotePort? remotePort]) => () {}); + localPort.register((dynamic message, [RemotePort? remotePort]) {}); await expectLater( () => RemotePort.connect(kTestAppId, kTestPort), @@ -52,7 +52,7 @@ void main() { testWidgets('Check for remote', (WidgetTester tester) async { final LocalPort localPort = await LocalPort.create(kTestPort); - localPort.register((dynamic message, [RemotePort? remotePort]) => () {}); + localPort.register((dynamic message, [RemotePort? remotePort]) {}); final RemotePort remotePort = await RemotePort.connect(kTestAppId, kTestPort);