freezed
freezed copied to clipboard
Code generation for immutable classes that has a simple syntax/API without compromising on the features.
**Describe the bug** While using codegen I'm getting warnings in terminal `No actions completed for 21.1s, waiting on` I have monorepo with dozen of packages so if I have 10...
## Context The documentation marks the whole chapter of [Union types and Sealed classes](https://pub.dev/packages/freezed#legacy-union-types-and-sealed-classes) as Legacy. It gives an impression that this whole thing should be avoided and be better...
**Is your feature request related to a problem? Please describe.** I am creating a class that will mostly map to a data class, encapsulating JSON response data from a REST...
Resolves #1068 I tried to minimize the changes. This PR also corrects the position of the `@override` for some cases where the override was above the documentation.
**Describe the bug** Let's assume that we need our own `fromJson` and `toJson` definitions for the `Model`. We set the appropriate flags in the `@Freezed(fromJson: false, toJson: false)` annotation. However,...
I'm finishing my first flutter plugin where I am using freezed for some data classes. My problem is just that pub.dev marks that I did't document the copyWith and toJson...
**Describe the bug** I have a class which is generated by freezed and contains a `Default` decorator on a [IList](https://pub.dev/packages/fast_immutable_collections#2-ilist) property. Whenever the decorator and the type are on the...
In the following code, I'd like the parameters to be nullable. This means that when I pass null or nothing to the parameters, default values should be used. ``` @freezed...
**Is your feature request related to a problem? Please describe.** I want to hide certain fields from the toString function or at least make them secret. **Describe the solution you'd...
When generating serializable classes, freezed uses the deprecated `@JsonKey(ignore: true)` on `copyWith` and `hashCode`. This has been deprecated since `json_serializable: ^6.6.0` and I suggest updating to the most recent way...