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

const AsyncNotifierConsumer<N extends BaseNotifier<BaseAsyncState<S>>, S extends Object?>({
  1. required Widget builder(
    1. BaseAsyncState<S> state
    ),
  2. required void listener(
    1. BaseAsyncState<S> state
    ),
  3. bool buildWhen(
    1. BaseAsyncState<S> previous,
    2. BaseAsyncState<S> current
    )?,
  4. bool listenWhen(
    1. BaseAsyncState<S> previous,
    2. BaseAsyncState<S> current
    )?,
  5. N notifier()?,
  6. void onInit(
    1. N notifier
    )?,
  7. Key? key,
})

Creates an AsyncNotifierConsumer.

Implementation

const AsyncNotifierConsumer({
  required super.builder,
  required super.listener,
  super.buildWhen,
  super.listenWhen,
  super.notifier,
  super.onInit,
  super.key,
});