AutoDisposeFamilyAsyncNotifierProvider<NotifierT extends AutoDisposeFamilyAsyncNotifier<T, Arg> , T, Arg> typedef
AutoDisposeFamilyAsyncNotifierProvider<NotifierT extends AutoDisposeFamilyAsyncNotifier<T, Arg> , T, Arg> = AutoDisposeFamilyAsyncNotifierProviderImpl<NotifierT, T, Arg>
A provider which creates and listens to an AsyncNotifier.
This is similar to FutureProvider but allows to perform side-effects.
The syntax for using this provider is slightly different from the others
in that the provider's function doesn't receive a "ref" (and in case
of family
, doesn't receive an argument either).
Instead the ref (and argument) are directly accessible in the associated
AsyncNotifier.
When using autoDispose
or family
, your notifier type changes.
Instead of extending AsyncNotifier, you should extend either:
- AutoDisposeAsyncNotifier for
autoDispose
- FamilyAsyncNotifier for
family
- AutoDisposeFamilyAsyncNotifier for
autoDispose.family
Implementation
typedef AutoDisposeFamilyAsyncNotifierProvider<
NotifierT extends AutoDisposeFamilyAsyncNotifier<T, Arg>, T, Arg>
= AutoDisposeFamilyAsyncNotifierProviderImpl<NotifierT, T, Arg>;