build
build copied to clipboard
generate_for is not work fine
I'm follow the instruction to generate model only for lib/models folder. But it still scan other folder.
targets:
$default:
builders:
json_serializable:
generate_for:
# Only run `json_serializable` on source under `lib/models`.
- lib/models/*.dart
Do you have this in a file called build.yaml in your package root folder?
What do you mean by "scan"?