AutoDisposeAsyncNotifierProvider<NotifierT extends AutoDisposeAsyncNotifier<T> , T> typedef
AutoDisposeAsyncNotifierProvider<NotifierT extends AutoDisposeAsyncNotifier<T> , T> = AutoDisposeAsyncNotifierProviderImpl<NotifierT, T>
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 AutoDisposeAsyncNotifierProvider<
NotifierT extends AutoDisposeAsyncNotifier<T>, T>
= AutoDisposeAsyncNotifierProviderImpl<NotifierT, T>;