Releases: dart-lang/dart_style
Releases · dart-lang/dart_style
package:dart_style v2.3.7
- Allow passing a language version to
DartFomatter()
. Formatted code will be
parsed at that version. If omitted, defaults to the latest version. In a
future release, this parameter will become required. - Allow opting out of formatting for a region of code using
// dart format off
and// dart format on
comments. Note: This only works using the new tall
style and requires passing the--enable-experiment=tall-style
experiment
flag (#361). - Preserve type parameters on old-style function-typed formals that also use
this.
orsuper.
(#1321). - Correctly format imports with both
as
andif
clauses (#1544). - Remove temporary work around for analyzer 6.2.0 from dart_style 2.3.6.
- Require
package:analyzer
>=6.5.0 <7.0.0
.
package:dart_style v2.3.6
- Fix compile error when using dart_style with analyzer 6.2.0.
package:dart_style v2.3.5
- Ensure switch expressions containing line comments split (#1404).
- Use language version
3.3
to parse so that code with extension types can be
formatted. - Support formatting the
macro
modifier when themacros
experiment flag
is passed.
package:dart_style v2.3.4
package:dart_style v2.3.2
- Don't indent parameters that have metadata annotations. Instead, align them
with the metadata and other parameters. - Allow metadata annotations on parameters to split independently of annotations
on other parameters (#1212). - Don't split before
.
following a record literal (#1213). - Don't force split on a line comment before a switch expression case (#1215).
- Require
package:analyzer
>=5.12.0 <7.0.0
. - Preserve
?
on nullable empty record types (#1224).