AsyncNotifierFamilyProvider<NotifierT extends FamilyAsyncNotifier<T, Arg> , T, Arg> typedef
AsyncNotifierFamilyProvider<NotifierT extends FamilyAsyncNotifier<T, Arg> , T, Arg> = FamilyAsyncNotifierProviderImpl<NotifierT, T, Arg>
A provider which creates and listen 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 AsyncNotifierFamilyProvider<
NotifierT extends FamilyAsyncNotifier<T, Arg>, T, Arg>
= FamilyAsyncNotifierProviderImpl<NotifierT, T, Arg>;