Support dart_style 2.x and bump to 5.0.2.
PiperOrigin-RevId: 363317758
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 41616b8..2104b9b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,6 @@
-## 5.0.2-dev
+## 5.0.2
-* Support the latest build packages
+* Support the latest build packages and dart_style.
## 5.0.1
diff --git a/lib/src/version.dart b/lib/src/version.dart
index aa112b0..041813e 100644
--- a/lib/src/version.dart
+++ b/lib/src/version.dart
@@ -1 +1 @@
-const packageVersion = '5.0.2-dev';
+const packageVersion = '5.0.2';
diff --git a/pubspec.yaml b/pubspec.yaml
index ab4e0a4..5ecc027 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: mockito
-version: 5.0.2-dev
+version: 5.0.2
description: A mock framework inspired by Mockito.
homepage: https://github.com/dart-lang/mockito
@@ -12,7 +12,7 @@
build: '>=1.3.0 <3.0.0'
code_builder: ^3.7.0
collection: ^1.15.0
- dart_style: ^1.3.6
+ dart_style: '>=1.3.6 <3.0.0'
matcher: ^0.12.10
meta: ^1.3.0
path: ^1.8.0