freezed icon indicating copy to clipboard operation
freezed copied to clipboard

Code generation for immutable classes that has a simple syntax/API without compromising on the features.

Results 136 freezed issues
Sort by recently updated
recently updated
newest added

analyzer: **4.4.0** [changelog](https://pub.dev/packages/analyzer/changelog#440) > - Deprecated DartType.element, check for InterfaceType, TypeParameterType, and then ask the element. No breaking changes in analyzer: **4.5.0** that effect freezed.

**Is your feature request related to a problem? Please describe.** Union type strings are not easily accessible at runtime. It seems to only be used for the purpose of toJson...

enhancement

**Describe the bug** While creating a freezed class with json_serializable I want to create a custom method toJson but generating freezer code taking always method created by json_serializable in this...

bug
needs triage

**Describe the bug** I have json responses like these and these need to be serialized to `BlockId` Class. ``` {"block_hash": "0x3871c8a0c3555687515a07f365f6f5b1d8c2ae953f7844575b8bde2b2efed27"} ```` ``` {"block_number": 1} ``` and ``` "block_tag" ```...

bug
needs triage

**Describe the bug** Fail to generate class named Forecast. **To Reproduce** ``` import 'package:freezed_annotation/freezed_annotation.dart'; part 'forecast.freezed.dart'; part 'forecast.g.dart'; @freezed class Forecast with _$Forecast { const factory Forecast({ @Default(0) int type,...

bug
question

Thank you for the 0.7.0 update, the default values made my code a little bit simpler :) One thing that I still have to work around are non-constant default values....

enhancement

Currently, this implementation is valid. ```dart @freezed class Shape with _$Shape { const Shape._(); const factory Shape.square({ required double side, }) = Square; const factory Shape.circle({ required double radius, })...

enhancement
needs triage

**Is your feature request related to a problem? Please describe.** So lets say I am taking input from the user using a form. The input from the form is stored...

enhancement

**The problem:** We can currently read properties that are defined on all constructors as documented [here](https://github.com/rrousselGit/freezed#shared-properties). However, when a property shares a name but not the type we lose the...

enhancement
needs triage

**Is your feature request related to a problem? Please describe.** I'm looking for a way to allow $ in class when freeze generate class. Let me explain. I use Mutation/Query...

enhancement
needs triage