Dart 3.12.2
Dart 3.12.2 has been released — a maintenance update that brings important bug fixes and minor enhancements to the Dart language and SDK. This release follows Dart 3.12.1 and addresses several community-reported issues.
Key Fixes in Dart 3.12.2
- Compiler crash fix — Resolved a segmentation fault that occurred when using complex generic type aliases with sealed classes
- Dart Analyzer performance — Improved analysis speed for large projects by 15% through caching optimizations in the type-inference engine
- Pub resolution fix — Fixed a bug where `pub get` would fail when a workspace contained packages with overlapping transitive Git dependencies
- macOS ARM64 compatibility — Improved native interop on Apple Silicon when using FFI with Objective-C frameworks on macOS 26
- Formatting edge case — Corrected an indentation issue in `dart format` when handling deeply nested collection literals with trailing commas
What's New for Developers
Beyond bug fixes, Dart 3.12.2 introduces a small quality-of-life improvement: the Dart VM now surfaces clearer error messages when package namespace conflicts occur during hot reload, saving developers from having to dig through long stack traces.
The Dart team also notes that work on Dart 3.13 is progressing, with experimental support for pattern matching on record types and further macro system refinements. The 3.12.x line remains the stable production channel and is fully compatible with Flutter 3.44.x.
How to Update
If you're using Dart through Flutter, upgrade Flutter to get the latest Dart SDK:
flutter upgrade
For standalone Dart projects:
dart upgrade
Verify your installation with:
dart --version
Dart 3.12.2 is a recommended upgrade for all Dart developers. Visit the official Dart changelog for the complete list of changes.