Closed andreacioni closed 1 year ago
I'm interested too because I'm stuck in the same issue with generated models from GraphQL
DataModel
to DataModelMixin
DataModel
as an abstract class mixing in DataModelMixin
DataModelMixin
available - see the Library
model in tests for an exampleinit()
after being instantiated, this includes calling it after using copyWith
in freezed classesTry out that commit and let me know if it helps.
Hi @frank06 ,
just tried the new version (1.5.12) with the mixin and I can confirm that is seems to work reliably.
Great work and many thanks!
Hi everyone,
I was wondering if there is a way to let
flutter_data
work with model that are defined in some other packages. I've imagined something like that:class A extends B with DataModel<A>
where
B
is model defined in another package. But sinceDataModel
is a class and not a mixin that simply can't work.I tried to find similar issues here on GitHub but the only referring to this argument was #165 . Was
DataModelMixin
introduced? Maybe with a different name?