AsyncController<T> constructor

AsyncController<T>({
  1. AsyncValueGetter<T>? futureCallback,
  2. StreamCallback<T>? streamCallback,
  3. T? initialData,
  4. bool cancelOnError = false,
  5. bool notifyOnCancel = false,
})

Creates an AsyncNotifier that can process Future and Stream objects.

Implementation

AsyncController({
  this.futureCallback,
  this.streamCallback,
  this.initialData,
  this.cancelOnError = false,
  this.notifyOnCancel = false,
}) : super.initialData(initialData);