Closed h-unterp closed 2 years ago
I think we could add a new PagedStateMixin
because PagedState
is necessary to use the PagedNotifier in the "easy" way (the "easy" example).
If PagedState is a mixin then PagedNotifier could not use it as the state class.
If we use a mixin we could lead to an unopinionated way of using the package because the user should implement by hand all the properties of PagedState. Maybe you find a clean way of do this if you can send me an example we could work on it!
it would be nice to be able to freeze the children of PagedState, however the only way to use inheritance with a @freezed is with a mixin.
Eg:
Currently, this is not possible because:
Would you be ok if I make a PR to allow for this? If so, I will do it.
Then the large .copyWith can be removed from the project.