AsyncNotifierListener<N extends BaseNotifier<BaseAsyncState<S>>, S extends Object?> constructor

const AsyncNotifierListener<N extends BaseNotifier<BaseAsyncState<S>>, S extends Object?>({
  1. required Widget child,
  2. required void listener(
    1. BaseAsyncState<S> state
    ),
  3. ShouldProceedCallback<BaseAsyncState<S>>? listenWhen,
  4. void onInit(
    1. N notifier
    )?,
  5. Key? key,
})

Creates an AsyncNotifierListener.

Implementation

const AsyncNotifierListener({
  required super.child,
  required super.listener,
  super.listenWhen,
  super.onInit,
  super.key,
});