freezed
freezed copied to clipboard
Code generation for immutable classes that has a simple syntax/API without compromising on the features.
**Describe the bug** freezed's code generation changes the type of fields defined with a typedef type: In Isar, `Id` is defined as ``` /// Type to specify the id property...
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] When we have a...
**Is your feature request related to a problem? Please describe.** When comparing two objects of the same type, I would like to be able to determine the "difference" between the...
**Describe the bug** When generating a class where there is parenthesis in a string default parameter the generator puts a `const` keyword which throws a lint error **To Reproduce** ```dart...
Let's say some package is providing me an immutable class as a result. Unfortunately, there is no equality support and `copyWith`, as I know and love from `freezed`. Package authors...
**Describe the bug** ``` error: Undefined class '$TestEnumCopyWith'. (undefined_class at [bug] lib/freezed_bug.freezed.dart:32) error: Undefined class '$TestEnumCopyWith'. (undefined_class at [bug] lib/freezed_bug.freezed.dart:56) error: The method '$TestEnumCopyWith' isn't defined for the type '_$TestModelCopyWithImpl'....
**Is your feature request related to a problem? Please describe.** I use flutter bloc and freezed for events. but some of them are used internally in bloc only so it...
**Describe the bug** When using the `@unfreezed` annotation fields are generated, as well as the getters for those fields. However no setters are generated, so it is not possible to...
Currently the generated `mapOrNull` / `whenOrNull` callbacks specify a non-null return type. ```dart @optionalTypeArgs TResult? mapOrNull({ TResult Function(A value)? a, TResult Function(B value)? b, }) ``` This forces us to...
I have a bloc event emailChanged, and it just updates the EmailAddress property of the state. But whet it runs the event on the textformfield onchanged method, i get Unhandled...