Bump analyzer from 5.13.0 to 6.2.0 (#4019)

Bumps [analyzer](https://github.com/dart-lang/sdk/tree/main/pkg) from 5.13.0 to 6.2.0.
- [Changelog](https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dart-lang/sdk/commits/HEAD/pkg)

---
updated-dependencies:
- dependency-name: analyzer
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
diff --git a/pubspec.yaml b/pubspec.yaml
index bce7a4b..fb93e5d 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -6,7 +6,7 @@
 dependencies:
   # Note: Pub's test infrastructure assumes that any dependencies used in tests
   # will be hosted dependencies.
-  analyzer: ^5.1.0
+  analyzer: ^6.2.0
   args: ^2.4.0
   async: ^2.6.1
   checks: ^0.2.2