[pkg] rev packages to have a min sdk verison of at least 3.0

Change-Id: I365abf095f0801bb8ce864f3bbaa57ff298164c3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/402881
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
diff --git a/pkg/analysis_server_client/pubspec.yaml b/pkg/analysis_server_client/pubspec.yaml
index 490bf386..1f7d5d5 100644
--- a/pkg/analysis_server_client/pubspec.yaml
+++ b/pkg/analysis_server_client/pubspec.yaml
@@ -10,7 +10,7 @@
 publish_to: none
 
 environment:
-  sdk: '>=2.19.0 <3.0.0'
+  sdk: ^3.0.0
 
 # Use 'any' constraints here; we get our versions from the DEPS file.
 dependencies:
diff --git a/pkg/build_integration/pubspec.yaml b/pkg/build_integration/pubspec.yaml
index 7045b18..cd5c53d 100644
--- a/pkg/build_integration/pubspec.yaml
+++ b/pkg/build_integration/pubspec.yaml
@@ -6,7 +6,7 @@
 publish_to: none
 
 environment:
-  sdk: '>=2.12.0 <3.0.0'
+  sdk: ^3.0.0
 
 # Use 'any' constraints here; we get our versions from the DEPS file.
 dependencies:
diff --git a/pkg/build_integration/test/file_system/multi_root_test.dart b/pkg/build_integration/test/file_system/multi_root_test.dart
index 9d6b5a0..3c56619 100644
--- a/pkg/build_integration/test/file_system/multi_root_test.dart
+++ b/pkg/build_integration/test/file_system/multi_root_test.dart
@@ -2,9 +2,7 @@
 // for details. All rights reserved. Use of this source code is governed by a
 // BSD-style license that can be found in the LICENSE file.
 
-// ignore_for_file: implementation_imports
-
-library front_end.test.src.multi_root_file_system.dart;
+// ignore_for_file: implementation_import
 
 import 'dart:async';
 
@@ -41,7 +39,8 @@
 
   setUp(() {
     memoryFs = MemoryFileSystem(root);
-    final rootUris = ['r1', 'r2/', 'A/B/', ''].map((r) => root.resolve(r)).toList();
+    final rootUris =
+        ['r1', 'r2/', 'A/B/', ''].map((r) => root.resolve(r)).toList();
     multiRoot = MultiRootFileSystem('multi-root', rootUris, memoryFs);
   });
 
diff --git a/pkg/dds_service_extensions/lib/dds_service_extensions.dart b/pkg/dds_service_extensions/lib/dds_service_extensions.dart
index edada8d..799f1cf 100644
--- a/pkg/dds_service_extensions/lib/dds_service_extensions.dart
+++ b/pkg/dds_service_extensions/lib/dds_service_extensions.dart
@@ -429,24 +429,15 @@
   CachedCpuSamples({
     required this.userTag,
     this.truncated,
-    required int? samplePeriod,
-    required int? maxStackDepth,
-    required int? sampleCount,
-    required int? timeOriginMicros,
-    required int? timeExtentMicros,
-    required int? pid,
-    required List<ProfileFunction>? functions,
-    required List<CpuSample>? samples,
-  }) : super(
-          samplePeriod: samplePeriod,
-          maxStackDepth: maxStackDepth,
-          sampleCount: sampleCount,
-          timeOriginMicros: timeOriginMicros,
-          timeExtentMicros: timeExtentMicros,
-          pid: pid,
-          functions: functions,
-          samples: samples,
-        );
+    required super.samplePeriod,
+    required super.maxStackDepth,
+    required super.sampleCount,
+    required super.timeOriginMicros,
+    required super.timeExtentMicros,
+    required super.pid,
+    required super.functions,
+    required super.samples,
+  });
 
   CachedCpuSamples._fromJson(Map<String, dynamic> json)
       : userTag = json['userTag']!,
diff --git a/pkg/dds_service_extensions/pubspec.yaml b/pkg/dds_service_extensions/pubspec.yaml
index e9e3ff3..7653510 100644
--- a/pkg/dds_service_extensions/pubspec.yaml
+++ b/pkg/dds_service_extensions/pubspec.yaml
@@ -6,7 +6,7 @@
 repository: https://github.com/dart-lang/sdk/tree/main/pkg/dds_service_extensions
 
 environment:
-  sdk: '>=2.15.0 <4.0.0'
+  sdk: ^3.0.0
 
 dependencies:
   async: ^2.4.1
diff --git a/pkg/js_runtime/pubspec.yaml b/pkg/js_runtime/pubspec.yaml
index 5ea7a56..2b25fa3 100644
--- a/pkg/js_runtime/pubspec.yaml
+++ b/pkg/js_runtime/pubspec.yaml
@@ -3,7 +3,7 @@
 publish_to: none
 
 environment:
-  sdk: '>=2.19.0 <3.0.0'
+  sdk: ^3.0.0
 
 # Use 'any' constraints here; we get our versions from the DEPS file.
 dev_dependencies:
diff --git a/pkg/js_shared/pubspec.yaml b/pkg/js_shared/pubspec.yaml
index 51f89bc..43fe85e 100644
--- a/pkg/js_shared/pubspec.yaml
+++ b/pkg/js_shared/pubspec.yaml
@@ -3,7 +3,7 @@
 publish_to: none
 
 environment:
-  sdk: '>=2.19.0 <3.0.0'
+  sdk: ^3.0.0
 
 # Use 'any' constraints here; we get our versions from the DEPS file.
 dev_dependencies:
diff --git a/pkg/telemetry/lib/src/pii_regexp.dart b/pkg/telemetry/lib/src/pii_regexp.dart
index 7c18945..d6691f5 100644
--- a/pkg/telemetry/lib/src/pii_regexp.dart
+++ b/pkg/telemetry/lib/src/pii_regexp.dart
@@ -8,7 +8,7 @@
 /// intentionally broad to make sure they get everything, possibly at the
 /// expense of readability for the error message.  Use care when reducing
 /// their scope.
-library pii_regexp;
+library;
 
 /// Contain an ordered list of regular expressions to be applied in sequence
 /// with [applyTo] to a string, with any matches being substituted with
diff --git a/pkg/telemetry/pubspec.yaml b/pkg/telemetry/pubspec.yaml
index cf06cde..757d044 100644
--- a/pkg/telemetry/pubspec.yaml
+++ b/pkg/telemetry/pubspec.yaml
@@ -4,7 +4,7 @@
 publish_to: none
 
 environment:
-  sdk: '>=2.12.0 <3.0.0'
+  sdk: ^3.0.0
 
 # Use 'any' constraints here; we get our versions from the DEPS file.
 dependencies:
diff --git a/pkg/vm_snapshot_analysis/lib/ascii_table.dart b/pkg/vm_snapshot_analysis/lib/ascii_table.dart
index 39455d8..4e2af3b 100644
--- a/pkg/vm_snapshot_analysis/lib/ascii_table.dart
+++ b/pkg/vm_snapshot_analysis/lib/ascii_table.dart
@@ -2,8 +2,6 @@
 // for details. All rights reserved. Use of this source code is governed by a
 // BSD-style license that can be found in the LICENSE file.
 
-library vm_snapshot_analysis.ascii_table;
-
 import 'dart:math' as math;
 
 /// A row in the [AsciiTable].
diff --git a/pkg/vm_snapshot_analysis/lib/instruction_sizes.dart b/pkg/vm_snapshot_analysis/lib/instruction_sizes.dart
index a1db07f..a1d369d 100644
--- a/pkg/vm_snapshot_analysis/lib/instruction_sizes.dart
+++ b/pkg/vm_snapshot_analysis/lib/instruction_sizes.dart
@@ -3,7 +3,7 @@
 // BSD-style license that can be found in the LICENSE file.
 
 /// Helper functions for parsing output of `--print-instructions-sizes-to` flag.
-library vm_snapshot_analysis.instruction_sizes;
+library;
 
 import 'package:vm_snapshot_analysis/name.dart';
 import 'package:vm_snapshot_analysis/program_info.dart';
diff --git a/pkg/vm_snapshot_analysis/lib/name.dart b/pkg/vm_snapshot_analysis/lib/name.dart
index 5d4e569..d85898f 100644
--- a/pkg/vm_snapshot_analysis/lib/name.dart
+++ b/pkg/vm_snapshot_analysis/lib/name.dart
@@ -3,7 +3,7 @@
 // BSD-style license that can be found in the LICENSE file.
 
 /// Helpers for parsing Code object name produced by Code::QualifiedName
-library vm_snapshot_analysis.name;
+library;
 
 // Wrapper around the name of a Code object produced by Code::QualifiedName.
 //
diff --git a/pkg/vm_snapshot_analysis/lib/precompiler_trace.dart b/pkg/vm_snapshot_analysis/lib/precompiler_trace.dart
index 49fe928..b9cd7e5 100644
--- a/pkg/vm_snapshot_analysis/lib/precompiler_trace.dart
+++ b/pkg/vm_snapshot_analysis/lib/precompiler_trace.dart
@@ -3,7 +3,7 @@
 // BSD-style license that can be found in the LICENSE file.
 
 /// Helpers for working with the output of `--trace-precompiler-to` VM flag.
-library vm_snapshot_analysis.precompiler_trace;
+library;
 
 import 'package:vm_snapshot_analysis/name.dart';
 import 'package:vm_snapshot_analysis/program_info.dart';
diff --git a/pkg/vm_snapshot_analysis/lib/program_info.dart b/pkg/vm_snapshot_analysis/lib/program_info.dart
index bbffd0f..40f993e 100644
--- a/pkg/vm_snapshot_analysis/lib/program_info.dart
+++ b/pkg/vm_snapshot_analysis/lib/program_info.dart
@@ -3,7 +3,7 @@
 // BSD-style license that can be found in the LICENSE file.
 
 /// Classes for representing information about the program structure.
-library vm_snapshot_analysis.program_info;
+library;
 
 import 'package:vm_snapshot_analysis/v8_profile.dart';
 
@@ -379,8 +379,7 @@
   /// [cls] and function name [fun].
   String bucketFor(String? pkg, String lib, String? cls, String? fun);
 
-  const Bucketing({required List<String> nameComponents})
-      : super(nameComponents: nameComponents);
+  const Bucketing({required super.nameComponents});
 
   static const _forType = {
     HistogramType.bySymbol: _BucketBySymbol(),
diff --git a/pkg/vm_snapshot_analysis/lib/src/commands/compare.dart b/pkg/vm_snapshot_analysis/lib/src/commands/compare.dart
index d0d9aac..f6027fe 100644
--- a/pkg/vm_snapshot_analysis/lib/src/commands/compare.dart
+++ b/pkg/vm_snapshot_analysis/lib/src/commands/compare.dart
@@ -5,7 +5,7 @@
 /// This tool compares two JSON size reports produced by
 /// --print-instructions-sizes-to and reports which symbols increased in size
 /// and which symbols decreased in size.
-library vm_snapshot_analysis.compare;
+library;
 
 import 'dart:io';
 
diff --git a/pkg/vm_snapshot_analysis/lib/src/commands/explain.dart b/pkg/vm_snapshot_analysis/lib/src/commands/explain.dart
index 130e34b..cbd387e 100644
--- a/pkg/vm_snapshot_analysis/lib/src/commands/explain.dart
+++ b/pkg/vm_snapshot_analysis/lib/src/commands/explain.dart
@@ -4,7 +4,7 @@
 
 /// This command allows to inspect information written into the
 /// precompiler trace (`--trace-precompiler-to` output).
-library vm_snapshot_analysis.explain;
+library;
 
 import 'dart:async';
 import 'dart:io';
diff --git a/pkg/vm_snapshot_analysis/lib/src/commands/summary.dart b/pkg/vm_snapshot_analysis/lib/src/commands/summary.dart
index 3709c82..3816f34 100644
--- a/pkg/vm_snapshot_analysis/lib/src/commands/summary.dart
+++ b/pkg/vm_snapshot_analysis/lib/src/commands/summary.dart
@@ -5,7 +5,7 @@
 /// This tool generates a summary report from a binary size reports produced by
 /// the AOT compiler's --print-instructions-sizes-to and
 /// --write-v8-snapshot-profile-to flags.
-library vm_snapshot_analysis.summary;
+library;
 
 import 'dart:async';
 import 'dart:io';
diff --git a/pkg/vm_snapshot_analysis/lib/src/commands/treemap.dart b/pkg/vm_snapshot_analysis/lib/src/commands/treemap.dart
index d68c8a5..95b3dba 100644
--- a/pkg/vm_snapshot_analysis/lib/src/commands/treemap.dart
+++ b/pkg/vm_snapshot_analysis/lib/src/commands/treemap.dart
@@ -8,7 +8,7 @@
 ///
 /// It used the same visualization framework as Chromium's binary_size tool
 /// located in third_party/binary_size.
-library vm_snapshot_analysis.commands.treemap;
+library;
 
 import 'dart:async';
 import 'dart:convert';
diff --git a/pkg/vm_snapshot_analysis/lib/src/dominators.dart b/pkg/vm_snapshot_analysis/lib/src/dominators.dart
index 9a0444b..f1c06fa 100644
--- a/pkg/vm_snapshot_analysis/lib/src/dominators.dart
+++ b/pkg/vm_snapshot_analysis/lib/src/dominators.dart
@@ -3,7 +3,7 @@
 // BSD-style license that can be found in the LICENSE file.
 
 /// Utility methods for computing dominators of an arbitrary graph.
-library vm_snapshot_analysis.src.dominators;
+library;
 
 import 'dart:math' as math;
 
diff --git a/pkg/vm_snapshot_analysis/lib/treemap.dart b/pkg/vm_snapshot_analysis/lib/treemap.dart
index 3c4458a..4519965 100644
--- a/pkg/vm_snapshot_analysis/lib/treemap.dart
+++ b/pkg/vm_snapshot_analysis/lib/treemap.dart
@@ -3,7 +3,7 @@
 // BSD-style license that can be found in the LICENSE file.
 
 /// Helper for building a treemap out of AOT snapshot size dump.
-library vm_snapshot_analysis.treemap;
+library;
 
 import 'dart:math';
 
diff --git a/pkg/vm_snapshot_analysis/lib/utils.dart b/pkg/vm_snapshot_analysis/lib/utils.dart
index d722bb2..d2df0ea 100644
--- a/pkg/vm_snapshot_analysis/lib/utils.dart
+++ b/pkg/vm_snapshot_analysis/lib/utils.dart
@@ -1,7 +1,6 @@
 // Copyright (c) 2020, the Dart project authors.  Please see the AUTHORS file
 // for details. All rights reserved. Use of this source code is governed by a
 // BSD-style license that can be found in the LICENSE file.
-library vm_snapshot_analysis.utils;
 
 import 'package:vm_snapshot_analysis/ascii_table.dart';
 import 'package:vm_snapshot_analysis/instruction_sizes.dart'
diff --git a/pkg/vm_snapshot_analysis/lib/v8_profile.dart b/pkg/vm_snapshot_analysis/lib/v8_profile.dart
index 6bcf902..4996e61 100644
--- a/pkg/vm_snapshot_analysis/lib/v8_profile.dart
+++ b/pkg/vm_snapshot_analysis/lib/v8_profile.dart
@@ -4,7 +4,7 @@
 
 /// This library contains utilities for reading and analyzing snapshot profiles
 /// produced by `--write-v8-snapshot-profile-to` VM flag.
-library vm_snapshot_analysis.v8_profile;
+library;
 
 import 'package:collection/collection.dart';
 import 'package:vm_snapshot_analysis/name.dart';
diff --git a/pkg/vm_snapshot_analysis/pubspec.yaml b/pkg/vm_snapshot_analysis/pubspec.yaml
index 6365f37..229f7ea 100644
--- a/pkg/vm_snapshot_analysis/pubspec.yaml
+++ b/pkg/vm_snapshot_analysis/pubspec.yaml
@@ -4,7 +4,7 @@
 repository: https://github.com/dart-lang/sdk/tree/main/pkg/vm_snapshot_analysis
 
 environment:
-  sdk: '>=2.14.0 <3.0.0'
+  sdk: ^3.0.0
 
 executables:
   snapshot_analysis: analyse
diff --git a/third_party/pkg/dap/pubspec.yaml b/third_party/pkg/dap/pubspec.yaml
index 94a34f0..97b1feb 100644
--- a/third_party/pkg/dap/pubspec.yaml
+++ b/third_party/pkg/dap/pubspec.yaml
@@ -6,7 +6,7 @@
 repository: https://github.com/dart-lang/sdk/tree/main/third_party/pkg/dap
 
 environment:
-  sdk: '>=2.19.0 <4.0.0'
+  sdk: ^3.0.0
 
 # We use 'any' version constraints here as we get our package versions from
 # the dart-lang/sdk repo's DEPS file. Note that this is a special case; the
diff --git a/third_party/pkg/language_server_protocol/pubspec.yaml b/third_party/pkg/language_server_protocol/pubspec.yaml
index 13843f2..968040d 100644
--- a/third_party/pkg/language_server_protocol/pubspec.yaml
+++ b/third_party/pkg/language_server_protocol/pubspec.yaml
@@ -6,7 +6,7 @@
 publish_to: none
 
 environment:
-  sdk: '>=3.0.0 <4.0.0'
+  sdk: ^3.0.0
 
 # Use 'any' constraints here; we get our versions from the DEPS file.
 dependencies: