Skip to content

Commit f343fe8

Browse files
committed
update codegen.md
Signed-off-by: Dan Printzell <[email protected]>
1 parent 4b4ef1b commit f343fe8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/codegen.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ By default, both are disabled.
214214

215215
`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.
216216

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+
217219
Example:
218220

219221
```yaml
@@ -228,6 +230,7 @@ Example:
228230
global_enum_fallbacks: true # add a generated fallback value to all enums
229231
enum_fallbacks:
230232
MyEnumType: OTHER # except for the type 'MyEnumType', use the value 'OTHER' as fallback there
233+
format: false # disable dart formatting for generated code
231234

232235
```
233236

0 commit comments

Comments
 (0)