diff --git a/pkgs/http_client_conformance_tests/bin/generate_server_wrappers.dart b/pkgs/http_client_conformance_tests/bin/generate_server_wrappers.dart index 6e86737c41..52e9d766c3 100644 --- a/pkgs/http_client_conformance_tests/bin/generate_server_wrappers.dart +++ b/pkgs/http_client_conformance_tests/bin/generate_server_wrappers.dart @@ -44,7 +44,8 @@ Future> startServer() async => spawnHybridUri(Uri( void main() async { final files = await Directory('lib/src').list().toList(); - final formatter = DartFormatter(); + final formatter = + DartFormatter(languageVersion: DartFormatter.latestLanguageVersion); files.where((file) => file.path.endsWith('_server.dart')).forEach((file) { final vmPath = file.path.replaceAll('_server.dart', '_server_vm.dart'); diff --git a/pkgs/http_client_conformance_tests/pubspec.yaml b/pkgs/http_client_conformance_tests/pubspec.yaml index c3861ffc15..ae2662b693 100644 --- a/pkgs/http_client_conformance_tests/pubspec.yaml +++ b/pkgs/http_client_conformance_tests/pubspec.yaml @@ -11,7 +11,7 @@ environment: dependencies: async: ^2.8.2 - dart_style: ^2.2.3 + dart_style: ^2.3.7 http: ^1.2.0 stream_channel: ^2.1.1 test: ^1.21.2