Category "freezed"

Freezed and json_serializable: How to use a custom converter

I want to add a custom converter to a freezed class like in this answer. I tried it with this code: @freezed class NewsPost with _$NewsPost { factory NewsPost

Cannot access copyWith method on freezed class

I have a freezed class and somehow I cannot access copyWith method. What is my mistake? Class: @freezed class LoginState with _$LoginState { const factory Lo

Flutter, Freezed: Set Class as default value

I have a User class which contains a Purchase class. I want to make it non-nullable, but not required. So this means that I would need to set a default value. I