You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/codegen.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,6 +214,8 @@ By default, both are disabled.
214
214
215
215
`vars_create_factories`: \[bool\] Whether to generate an additional factory constructor for the variables class. In contrast to the `built_value` builders, this factory constructor respects nullability for it's parameters. Defaults to false.
216
216
217
+
`format`: \[bool\] Whether to allow formatting of the generated code. When set to false, adds `// dart format off` directive to the generated files. Defaults to true.
218
+
217
219
Example:
218
220
219
221
```yaml
@@ -228,6 +230,7 @@ Example:
228
230
global_enum_fallbacks: true # add a generated fallback value to all enums
229
231
enum_fallbacks:
230
232
MyEnumType: OTHER # except for the type 'MyEnumType', use the value 'OTHER' as fallback there
233
+
format: false # disable dart formatting for generated code
0 commit comments