-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is this compatible with the flutter freezed package? #29
Comments
Hi, so I tried it and I saw 2 problems. The other problem though seems to be in the implementation of my mapper. @freezed
class Person with _$Person {
Person._();
factory Person(String name, int age) = _Person;
}
@freezed
class PersonModel with _$PersonModel {
factory PersonModel(String name, int age) = _PersonModel;
} And this mapper @Mapper()
abstract class PersonMapper {
Person fromModel(PersonModel model);
} When running the build_generator I get the following error.
Gonna have to check this out. return outputClass.constructors.where((element) => !element.isFactory).first; I'll try to find some time in the next days |
Cool, thanks for looking into it :) |
Hi, any progress with that? I use smartstruct v1.2.4+1 and freezed: v1.0.2+1.
|
Hi @andrew-tpz , unfortunately not yet. |
Hi, Another problem was the mapping of the copyWith Method, this has to be ignored manually. As I didn't use freezed much, I hope most of it will work now. |
I haven't managed to map my freezed objects successfully. Is this possible at this stage?
The text was updated successfully, but these errors were encountered: