ComputeListWidget<T> constructor

const ComputeListWidget<T>({
  1. Key? key,
  2. required Widget builder(
    1. T? data
    ),
  3. required Widget loader,
  4. required Widget errorWidget,
  5. bool errorOrEmptyCondition(
    1. List<T>? data
    ) = errorOrEmptyConditionHandler,
  6. required List dataList,
  7. required FutureOr<List<T>> computeFunction(
    1. dynamic
    ),
  8. Axis scrollDirection = Axis.vertical,
  9. ScrollController? scrollController,
  10. Widget wrapperWidget(
    1. Widget
    ) = staticWrapperWidget,
})

Implementation

const ComputeListWidget(
    {Key? key,
    required this.builder,
    required this.loader,
    required this.errorWidget,
    this.errorOrEmptyCondition = errorOrEmptyConditionHandler,
    required this.dataList,
    required this.computeFunction,
    this.scrollDirection = Axis.vertical,
    this.scrollController,
    this.wrapperWidget = staticWrapperWidget})
    : super(key: key);