Update SDK constraints for Dart 3.0 and 3.1 stable releases (#2207)

Update SDK constraints for most packages to the first `dev` release of 3.2.0 since the stable 3.1.0 release doesn't actually include the DDC debugger runtime API changes, but will allow for package resolution with the `3.1.0-...-dev` constraint and a 3.1.0 SDK. This will prevent that.

Others are updated to stable releases.

Issue reference: https://github.com/dart-lang/sdk/issues/53459
diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml
index 98c48d6..41d2955 100644
--- a/.github/workflows/dart.yml
+++ b/.github/workflows/dart.yml
@@ -1,4 +1,4 @@
-# Created with package:mono_repo v6.4.3
+# Created with package:mono_repo v6.5.7
 name: Dart CI
 on:
   push:
@@ -37,7 +37,7 @@
         name: Checkout repository
         uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
       - name: mono_repo self validate
-        run: dart pub global activate mono_repo 6.4.3
+        run: dart pub global activate mono_repo 6.5.7
       - name: mono_repo self validate
         run: dart pub global run mono_repo generate --validate
   job_002:
diff --git a/dwds/CHANGELOG.md b/dwds/CHANGELOG.md
index 19b2499..822fb3b 100644
--- a/dwds/CHANGELOG.md
+++ b/dwds/CHANGELOG.md
@@ -1,5 +1,7 @@
 ## 21.0.0-wip
 
+- Update Dart SDK constraint to `>=3.2.0-36.0.dev <4.0.0`. - [#2207](https://github.com/dart-lang/webdev/pull/2207)
+
 **Breaking changes**
 
 - Allow clients to specify where to find the package config. - [#2203](https://github.com/dart-lang/webdev/pull/2203).
diff --git a/dwds/debug_extension/pubspec.yaml b/dwds/debug_extension/pubspec.yaml
index 07cf7ad..c51aeb4 100644
--- a/dwds/debug_extension/pubspec.yaml
+++ b/dwds/debug_extension/pubspec.yaml
@@ -6,7 +6,7 @@
   A chrome extension for Dart debugging.
 
 environment:
-  sdk: ">=3.1.0-340.0.dev <4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dependencies:
   async: ^2.3.0
diff --git a/dwds/debug_extension_mv3/pubspec.yaml b/dwds/debug_extension_mv3/pubspec.yaml
index c8e542a..f903619 100644
--- a/dwds/debug_extension_mv3/pubspec.yaml
+++ b/dwds/debug_extension_mv3/pubspec.yaml
@@ -6,7 +6,7 @@
   A Chrome extension for Dart debugging.
 
 environment:
-  sdk: ">=3.1.0-340.0.dev <4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dependencies:
   built_value: ^8.3.0
diff --git a/dwds/lib/src/handlers/dev_handler.dart b/dwds/lib/src/handlers/dev_handler.dart
index 3012b2e..51c634a 100644
--- a/dwds/lib/src/handlers/dev_handler.dart
+++ b/dwds/lib/src/handlers/dev_handler.dart
@@ -420,15 +420,13 @@
       debuggerStart: debuggerStart,
       devToolsStart: DateTime.now(),
     );
-    if (_devTools != null) {
-      await _launchDevTools(
-        appServices.chromeProxyService.remoteDebugger,
-        _constructDevToolsUri(
-          appServices.debugService.uri,
-          ideQueryParam: 'Dwds',
-        ),
-      );
-    }
+    await _launchDevTools(
+      appServices.chromeProxyService.remoteDebugger,
+      _constructDevToolsUri(
+        appServices.debugService.uri,
+        ideQueryParam: 'Dwds',
+      ),
+    );
   }
 
   Future<AppConnection> _handleConnectRequest(
diff --git a/dwds/lib/src/services/debug_service.dart b/dwds/lib/src/services/debug_service.dart
index a0f8fae..5976e7e 100644
--- a/dwds/lib/src/services/debug_service.dart
+++ b/dwds/lib/src/services/debug_service.dart
@@ -203,7 +203,7 @@
   Future<String> get encodedUri async {
     if (_encodedUri != null) return _encodedUri!;
     var encoded = uri;
-    if (_urlEncoder != null) encoded = await _urlEncoder!(encoded);
+    if (_urlEncoder != null) encoded = await _urlEncoder(encoded);
     return _encodedUri = encoded;
   }
 
diff --git a/dwds/lib/src/utilities/objects.dart b/dwds/lib/src/utilities/objects.dart
index 05aedd5..0aafa86 100644
--- a/dwds/lib/src/utilities/objects.dart
+++ b/dwds/lib/src/utilities/objects.dart
@@ -21,7 +21,7 @@
   ///
   /// Useful for getting access to properties of particular types of
   /// RemoteObject.
-  Object? get rawValue => _map == null ? null : _map!['value'];
+  Object? get rawValue => _map == null ? null : _map['value'];
 
   /// Remote object value in case of primitive values or JSON values (if it was
   /// requested). (optional)
@@ -29,7 +29,7 @@
     if (_remoteObjectValue != null) return _remoteObjectValue!;
     if (_map == null) return null;
     if (rawValue == null) return null;
-    final val = _map!['value'];
+    final val = _map['value'];
     if (val is RemoteObject) {
       _remoteObjectValue = val;
     } else {
@@ -59,7 +59,7 @@
   /// Will be of the form 'Symbol(_actualName)' for private fields.
   String? get rawName {
     if (_map == null) return null;
-    return _map!['name'] as String;
+    return _map['name'] as String;
   }
 
   @override
diff --git a/dwds/pubspec.yaml b/dwds/pubspec.yaml
index b801113..c2a9574 100644
--- a/dwds/pubspec.yaml
+++ b/dwds/pubspec.yaml
@@ -6,7 +6,7 @@
   service protocol.
 repository: https://github.com/dart-lang/webdev/tree/master/dwds
 environment:
-  sdk: ">=3.1.0-340.0.dev <4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dependencies:
   async: ^2.9.0
diff --git a/example/pubspec.yaml b/example/pubspec.yaml
index 747180c..bbaf115 100644
--- a/example/pubspec.yaml
+++ b/example/pubspec.yaml
@@ -4,7 +4,7 @@
 publish_to: none
 
 environment:
-  sdk: ">=3.1.0-340.0.dev <4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dev_dependencies:
   build_runner: ^2.4.0
diff --git a/fixtures/_experimentSound/pubspec.yaml b/fixtures/_experimentSound/pubspec.yaml
index 517ea35..6640dae 100644
--- a/fixtures/_experimentSound/pubspec.yaml
+++ b/fixtures/_experimentSound/pubspec.yaml
@@ -5,7 +5,7 @@
 publish_to: none
 
 environment:
-  sdk: ">=3.1.0-254.0.dev<4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dependencies:
   intl: ^0.17.0
diff --git a/fixtures/_test/pubspec.yaml b/fixtures/_test/pubspec.yaml
index ca7044b..296935c 100644
--- a/fixtures/_test/pubspec.yaml
+++ b/fixtures/_test/pubspec.yaml
@@ -9,7 +9,7 @@
 publish_to: none
 
 environment:
-  sdk: ">=3.1.0-340.0.dev <4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dependencies:
   intl: ^0.17.0
diff --git a/fixtures/_testCircular1/pubspec.yaml b/fixtures/_testCircular1/pubspec.yaml
index ce20982..c6b0dd5 100644
--- a/fixtures/_testCircular1/pubspec.yaml
+++ b/fixtures/_testCircular1/pubspec.yaml
@@ -9,7 +9,7 @@
 publish_to: none
 
 environment:
-  sdk: ">=3.1.0-340.0.dev <4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dependencies:
   intl: ^0.17.0
diff --git a/fixtures/_testCircular1Sound/pubspec.yaml b/fixtures/_testCircular1Sound/pubspec.yaml
index b1e07e8..a95c387 100644
--- a/fixtures/_testCircular1Sound/pubspec.yaml
+++ b/fixtures/_testCircular1Sound/pubspec.yaml
@@ -5,7 +5,7 @@
 publish_to: none
 
 environment:
-  sdk: ">=3.1.0-340.0.dev <4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dependencies:
   intl: ^0.17.0
diff --git a/fixtures/_testCircular2/pubspec.yaml b/fixtures/_testCircular2/pubspec.yaml
index 153ccb2..fca9f9a 100644
--- a/fixtures/_testCircular2/pubspec.yaml
+++ b/fixtures/_testCircular2/pubspec.yaml
@@ -9,7 +9,7 @@
 publish_to: none
 
 environment:
-  sdk: ">=3.1.0-340.0.dev <4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dependencies:
   _test_circular1:
diff --git a/fixtures/_testCircular2Sound/pubspec.yaml b/fixtures/_testCircular2Sound/pubspec.yaml
index 51f768a..233a238 100644
--- a/fixtures/_testCircular2Sound/pubspec.yaml
+++ b/fixtures/_testCircular2Sound/pubspec.yaml
@@ -5,7 +5,7 @@
 publish_to: none
 
 environment:
-  sdk: ">=3.1.0-340.0.dev <4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dependencies:
   _test_circular1_sound:
diff --git a/fixtures/_testPackage/pubspec.yaml b/fixtures/_testPackage/pubspec.yaml
index 7c3ec06..a087d60 100644
--- a/fixtures/_testPackage/pubspec.yaml
+++ b/fixtures/_testPackage/pubspec.yaml
@@ -9,7 +9,7 @@
 publish_to: none
 
 environment:
-  sdk: ">=3.1.0-254.0.dev<4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dependencies:
   _test:
diff --git a/fixtures/_testPackageSound/pubspec.yaml b/fixtures/_testPackageSound/pubspec.yaml
index 6a41aa4..e547e71 100644
--- a/fixtures/_testPackageSound/pubspec.yaml
+++ b/fixtures/_testPackageSound/pubspec.yaml
@@ -5,7 +5,7 @@
 publish_to: none
 
 environment:
-  sdk: ">=3.1.0-340.0.dev <4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dependencies:
   _test_sound:
diff --git a/fixtures/_testSound/pubspec.yaml b/fixtures/_testSound/pubspec.yaml
index bb4ae18..36cc7d1 100644
--- a/fixtures/_testSound/pubspec.yaml
+++ b/fixtures/_testSound/pubspec.yaml
@@ -5,7 +5,7 @@
 publish_to: none
 
 environment:
-  sdk: ">=3.1.0-340.0.dev <4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dependencies:
   intl: ^0.17.0
diff --git a/fixtures/_webdevSmoke/pubspec.yaml b/fixtures/_webdevSmoke/pubspec.yaml
index fefa22f..bb23846 100644
--- a/fixtures/_webdevSmoke/pubspec.yaml
+++ b/fixtures/_webdevSmoke/pubspec.yaml
@@ -14,7 +14,7 @@
 # and build_web_compilers constraint should match those defined
 # in pubspec.dart.
 environment:
-  sdk: ">=3.1.0-340.0.dev <4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dev_dependencies:
   build_runner: '>=1.6.2 <3.0.0'
diff --git a/fixtures/_webdevSoundSmoke/pubspec.yaml b/fixtures/_webdevSoundSmoke/pubspec.yaml
index 0775b19..b286a99 100644
--- a/fixtures/_webdevSoundSmoke/pubspec.yaml
+++ b/fixtures/_webdevSoundSmoke/pubspec.yaml
@@ -4,7 +4,7 @@
 publish_to: none
 
 environment:
-  sdk: ">=3.1.0-340.0.dev <4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dev_dependencies:
   build_runner: ^2.4.0
diff --git a/frontend_server_client/CHANGELOG.md b/frontend_server_client/CHANGELOG.md
index 9f210a4..baedcf9 100644
--- a/frontend_server_client/CHANGELOG.md
+++ b/frontend_server_client/CHANGELOG.md
@@ -1,6 +1,6 @@
-## 3.3.0-dev
+## 3.3.0-wip
 
-- Update SDK constraint to `>=3.0.0-134.0.dev <4.0.0`.
+- Update Dart SDK constraint to `>=3.0.0 <4.0.0`.
 - Support changes in the SDK layout for Dart 3.0.
 
 ## 3.2.0
diff --git a/frontend_server_client/pubspec.yaml b/frontend_server_client/pubspec.yaml
index e1507b4..5ef52a2 100644
--- a/frontend_server_client/pubspec.yaml
+++ b/frontend_server_client/pubspec.yaml
@@ -1,12 +1,12 @@
 name: frontend_server_client
-version: 3.3.0-dev
+version: 3.3.0-wip
 description: >-
   Client code to start and interact with the frontend_server compiler from the
   Dart SDK.
 repository: https://github.com/dart-lang/webdev/tree/master/frontend_server_client
 
 environment:
-  sdk: ">=3.0.0-134.0.dev <4.0.0"
+  sdk: ^3.0.0
 
 dependencies:
   async: ^2.5.0
diff --git a/frontend_server_client/test/frontend_sever_client_test.dart b/frontend_server_client/test/frontend_sever_client_test.dart
index b8a6376..4deab4f 100644
--- a/frontend_server_client/test/frontend_sever_client_test.dart
+++ b/frontend_server_client/test/frontend_sever_client_test.dart
@@ -28,7 +28,7 @@
   path: ^1.0.0
 
 environment:
-  sdk: ">3.0.0-134.0.dev <4.0.0"
+  sdk: ^3.0.0
       '''),
       d.dir('bin', [
         d.file('main.dart', '''
diff --git a/frontend_server_common/pubspec.yaml b/frontend_server_common/pubspec.yaml
index 0e7cd75..22e6c31 100644
--- a/frontend_server_common/pubspec.yaml
+++ b/frontend_server_common/pubspec.yaml
@@ -3,7 +3,7 @@
 description: >-
   Frontend server integration code to use for dwds tests. Mimics flutter code.
 environment:
-  sdk: ">=3.0.0-134.0.dev <4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dependencies:
   dwds: any
diff --git a/test_common/pubspec.yaml b/test_common/pubspec.yaml
index a253de2..760d45f 100644
--- a/test_common/pubspec.yaml
+++ b/test_common/pubspec.yaml
@@ -3,7 +3,7 @@
 description: >-
   Common test functionality.
 environment:
-  sdk: ">=3.0.0-134.0.dev <4.0.0"
+  sdk: ^3.1.0
 
 dependencies:
   dwds: any
diff --git a/tool/ci.sh b/tool/ci.sh
index b7b7e66..b834a52 100755
--- a/tool/ci.sh
+++ b/tool/ci.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Created with package:mono_repo v6.4.3
+# Created with package:mono_repo v6.5.7
 
 # Support built in commands on windows out of the box.
 # When it is a flutter repo (check the pubspec.yaml for "sdk: flutter")
diff --git a/tool/pubspec.yaml b/tool/pubspec.yaml
index 2e78f13..bb3967c 100644
--- a/tool/pubspec.yaml
+++ b/tool/pubspec.yaml
@@ -3,7 +3,7 @@
 description: >-
   Common tools for the mono-repo.
 environment:
-  sdk: ">=3.0.0-134.0.dev <4.0.0"
+  sdk: ^3.1.0
 
 dev_dependencies:
   args: ^2.4.0
diff --git a/webdev/CHANGELOG.md b/webdev/CHANGELOG.md
index 1109520..949cf54 100644
--- a/webdev/CHANGELOG.md
+++ b/webdev/CHANGELOG.md
@@ -1,5 +1,7 @@
 ## 3.0.8-wip
 
+- Update Dart SDK constraint to `>=3.2.0-36.0.dev <4.0.0`. - [#2207](https://github.com/dart-lang/webdev/pull/2207)
+
 ## 3.0.7
 
 - Update `build_web_compilers` constraint to `^4.0.4`.
diff --git a/webdev/lib/src/pubspec.dart b/webdev/lib/src/pubspec.dart
index 6520743..34cc83c 100644
--- a/webdev/lib/src/pubspec.dart
+++ b/webdev/lib/src/pubspec.dart
@@ -91,7 +91,7 @@
         PackageExceptionDetails.missingDep(pkgName, constraint);
 
     var pkgDataMap =
-        (_packages == null) ? null : _packages![pkgName] as YamlMap?;
+        (_packages == null) ? null : _packages[pkgName] as YamlMap?;
     if (pkgDataMap == null) {
       issues.add(missingDetails);
     } else {
diff --git a/webdev/pubspec.yaml b/webdev/pubspec.yaml
index e5efd30..22666ba 100644
--- a/webdev/pubspec.yaml
+++ b/webdev/pubspec.yaml
@@ -8,7 +8,7 @@
   features for users and tools to build and deploy web applications with Dart.
 repository: https://github.com/dart-lang/webdev/tree/master/webdev
 environment:
-  sdk: ">=3.1.0-340.0.dev <4.0.0"
+  sdk: ^3.2.0-36.0.dev
 
 dependencies:
   args: ^2.3.1