File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,8 @@ class CodeBuilder extends Builder {
159
159
var code = CodeChunks .objectboxDart (model, imports, pubspec);
160
160
161
161
try {
162
- code = DartFormatter ().format (code);
162
+ code = DartFormatter (languageVersion: DartFormatter .latestLanguageVersion)
163
+ .format (code);
163
164
} finally {
164
165
// Write the code even after a formatter error so it's easier to debug.
165
166
final codeId = AssetId (
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ environment:
10
10
11
11
dependencies :
12
12
objectbox : 4.1.0
13
- analyzer : ' >=5.2 .0 <7 .0.0' # 5.1.0 has a bug where DartType.element has been removed.
13
+ analyzer : ' >=6.0 .0 <8 .0.0' # 5.1.0 has a bug where DartType.element has been removed.
14
14
build : ^2.0.0
15
15
collection : ^1.15.0
16
- dart_style : ^2 .0.0
16
+ dart_style : ^3 .0.1
17
17
glob : ^2.0.0
18
18
path : ^1.8.0
19
- source_gen : ^1 .0.0
19
+ source_gen : ^2 .0.0
20
20
pubspec_parse : ^1.0.0
21
21
yaml : ^3.0.0
22
22
http : ' >=0.13.5 <2.0.0'
You can’t perform that action at this time.
0 commit comments