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
I wish to be able to write something like ref.write(provider) or ref.notify(provider) instead of ref.read(provider.notifier)
I found that the providers that have a notifier do not have a unique supper class in common
so I wonder if we can create a class like HasNotifierProvider that extends BaseProvider and holds the notifier getter
then make AsyncNotifierProviderBase, NotifierProviderBase and _StateProviderBase extends HasNotifierProvider instead of BaseProvider and override the notifier
then I'll be able to add extensions on Ref and WidgetRef
I wish to be able to write something like
ref.write(provider)
orref.notify(provider)
instead ofref.read(provider.notifier)
I found that the providers that have a notifier do not have a unique supper class in common
so I wonder if we can create a class like
HasNotifierProvider
that extendsBaseProvider
and holds the notifier getterthen make
AsyncNotifierProviderBase
,NotifierProviderBase
and_StateProviderBase
extendsHasNotifierProvider
instead ofBaseProvider
and override the notifierthen I'll be able to add extensions on Ref and WidgetRef
The text was updated successfully, but these errors were encountered: