FutureDialog<T> constructor

const FutureDialog<T>({
  1. required Future<T> future,
  2. String loadingText = 'Loading',
  3. Widget onData(
    1. T? res
    )?,
  4. Widget onError(
    1. Object? error
    )?,
  5. Widget onLoading()?,
  6. bool debug = false,
  7. bool throwError = false,
  8. Key? key,
})

Implementation

const FutureDialog({
  required this.future,
  this.loadingText = 'Loading',
  this.onData,
  this.onError,
  this.onLoading,
  this.debug = false,
  this.throwError = false,
  Key? key,
}) : super(key: key);