Need help adding a new parameter to freezed #1011
-
I am adding a new feature to freezed for generating Firebase converter helper functions. The code generation works fine, but adding a new boolean switch to the annotation is troublesome. After adding the new parameter to the data class in freezed/lib/src/models.dart:
Since building the freezed package depends on freezed itself, running the build-runner results in an error:
How can I generate models.freezed.dart without the build runner failing here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
models.freezed.dart is edited in the _internal folder. Make your edit there, and copy the generated file in Freezed. |
Beta Was this translation helpful? Give feedback.
models.freezed.dart is edited in the _internal folder. Make your edit there, and copy the generated file in Freezed.