AsyncBuilder<T> constructor

const AsyncBuilder<T>({
  1. Key? key,
  2. Future<T>? future()?,
  3. T? initialValue,
  4. Widget? loading,
  5. Widget onLoading(
    1. BuildContext context
    )?,
  6. Widget onError(
    1. BuildContext context,
    2. Object error,
    3. StackTrace? stack
    )?,
  7. Widget onDone(
    1. BuildContext context,
    2. T value
    )?,
  8. bool retryOnError = true,
})

Implementation

const AsyncBuilder({
  super.key,
  this.future,
  this.initialValue,
  this.loading,
  this.onLoading,
  this.onError,
  this.onDone,
  this.retryOnError = true,
});