SuraFutureHandler<T extends Object>.function constructor

const SuraFutureHandler<T extends Object>.function({
  1. Key? key,
  2. required Widget ready(
    1. T
    ),
  3. required Future<T> futureFunction()?,
  4. Future<T>? future,
  5. Widget error(
    1. dynamic
    )?,
  6. Widget? loading,
  7. T? initialData,
})

Implementation

const SuraFutureHandler.function({
  Key? key,
  required this.ready,
  required this.futureFunction,
  this.future,
  this.error,
  this.loading,
  this.initialData,
}) : super(key: key);