You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is generally the same story as in issue #9 with ChangeNotifier. However, a slightly more general syntax covering both cases at once appeared in my head:
We can't seem to do anything technically with those "parent" classes that we need to extends from. This also applies to Cubit and ValueNotifier and the like. And I don't like the fact that it's very easy to forget to override the close method when adding the “Detachability” mixin.
The text was updated successfully, but these errors were encountered:
Yes, the important thing here is that I wouldn't want to force users to use a conditional CubitDetachability that is a standalone implementation of abstract MyCubit extends Cubit with Detachability because that's too tight an integration with other libraries, similar to how riverpod forces the use of ConsumerWidget instead of StatelessWidget (even though there is a Consumer in the package).
This is generally the same story as in issue #9 with
ChangeNotifier
. However, a slightly more general syntax covering both cases at once appeared in my head:Which will make it possible to do things like this:
We can't seem to do anything technically with those "parent" classes that we need to
extends
from. This also applies toCubit
andValueNotifier
and the like. And I don't like the fact that it's very easy to forget to override theclose
method when adding the “Detachability” mixin.The text was updated successfully, but these errors were encountered: