freezed
freezed copied to clipboard
Code generation for immutable classes that has a simple syntax/API without compromising on the features.
**Is your feature request related to a problem? Please describe.** Sometimes it's helpful for debugging to have the result of some getters in the `toString()` method. **Describe the solution you'd...
**Is your feature request related to a problem? Please describe.** The API I'm using provides data like so: ```json { "generalData": {} "catInfo" {}, } ``` ```json { "generalData": {}...
`copyWith` getter causing `inconsistent_inheritance_getter_and_method` when extending abstract class
**Describe the bug** The generated `freezed` code does not satisfy the required methods imposed by the extended abstract class. A reason why this can't be "just changed" by the developer...
This bug is marked as closed, but as of 18th Sep. 2021 and version 0.14.5 - it is not (fully fixed). Example: ``` /// importing library from another package with...
Hi, **Describe the bug** **Failed to generate with a @Default containing a blurHash (https://github.com/woltapp/blurhash)** Ex : > @Default('U3CZbEof00j[RjWBIUof00Rj~qt7xuayxuj[') It failed to decode the '[' characters. ``` [SEVERE] freezed:freezed on lib/core/models/pictures/picture_model.dart:...
Example: ```dart @freezed class Example with _$Example { factory Example( @JsonKey() // invalid_annotation_target String value, ) = _Example } ```
The generated code for copyWith can be reduced in some situations. For example if there is no need for "deep copy", some classes can be removed. It's also possible to...
https://gist.github.com/dannnnthemannnn/f22b94c586c26a0909be073d2cceed42 ``` @freezed abstract class Discussion with _$Discussion { factory Discussion({ DateTime scheduledTime, bool isPublic, List participantIds, }) = _Discussion; // Add Helper field name somehow to generated class similar...
(great job Remi!) I wasn't sure how to title this! It isn't possible to do the following because the properties are only available if all factory methods have that property....