We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60890ee commit 6456d48Copy full SHA for 6456d48
pkgs/ffigen/lib/src/code_generator/library.dart
@@ -94,8 +94,9 @@ class Library {
94
if (!file.existsSync()) file.createSync(recursive: true);
95
var bindings = generate();
96
if (format) {
97
- final formatter =
98
- DartFormatter(languageVersion: DartFormatter.latestLanguageVersion);
+ final formatter = DartFormatter(
+ languageVersion: DartFormatter.latestShortStyleLanguageVersion,
99
+ );
100
bindings = formatter.format(bindings);
101
}
102
file.writeAsStringSync(bindings);
pkgs/ffigen/pubspec.yaml
@@ -22,7 +22,7 @@ dependencies:
22
args: ^2.6.0
23
cli_util: ^0.4.2
24
collection: ^1.18.0
25
- dart_style: ^2.3.7
+ dart_style: ^3.0.0
26
ffi: ^2.0.1
27
file: ^7.0.0
28
glob: ^2.0.0
0 commit comments