mirror of
https://github.com/flutter/packages.git
synced 2025-06-20 14:38:40 +08:00
[tool] Update Dart SDK version (#4402)
Since the tool only needs to support back to Flutter 3.3 (the oldest version we still run CI with), this updates the tool to the corresponding minimum Dart version. This allows the use of `super` parameters, so `dart fix --apply` was run to convert them all (and remove all the includes that were only needed for setting default values). Also opportunistically cleans up a bunch of unnecessary, very old `dart:async` includes. (Other than those removals, the changes here are all `dart fix`-generated.)
This commit is contained in:
@ -10,10 +10,7 @@ import 'package:file/file.dart';
|
||||
import 'package:file/memory.dart';
|
||||
import 'package:flutter_plugin_tools/src/common/core.dart';
|
||||
import 'package:flutter_plugin_tools/src/common/package_looping_command.dart';
|
||||
import 'package:flutter_plugin_tools/src/common/process_runner.dart';
|
||||
import 'package:git/git.dart';
|
||||
import 'package:mockito/mockito.dart';
|
||||
import 'package:platform/platform.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
import '../mocks.dart';
|
||||
@ -852,8 +849,8 @@ void main() {
|
||||
|
||||
class TestPackageLoopingCommand extends PackageLoopingCommand {
|
||||
TestPackageLoopingCommand(
|
||||
Directory packagesDir, {
|
||||
required Platform platform,
|
||||
super.packagesDir, {
|
||||
required super.platform,
|
||||
this.hasLongOutput = true,
|
||||
this.packageLoopingType = PackageLoopingType.topLevelOnly,
|
||||
this.customFailureListHeader,
|
||||
@ -862,10 +859,9 @@ class TestPackageLoopingCommand extends PackageLoopingCommand {
|
||||
this.warnsDuringInit = false,
|
||||
this.warnsDuringCleanup = false,
|
||||
this.captureOutput = false,
|
||||
ProcessRunner processRunner = const ProcessRunner(),
|
||||
GitDir? gitDir,
|
||||
}) : super(packagesDir,
|
||||
processRunner: processRunner, platform: platform, gitDir: gitDir);
|
||||
super.processRunner,
|
||||
super.gitDir,
|
||||
});
|
||||
|
||||
final List<String> checkedPackages = <String>[];
|
||||
final List<String> capturedOutput = <String>[];
|
||||
|
Reference in New Issue
Block a user