SmartRefresh<T> constructor

const SmartRefresh<T>({
  1. Key? key,
  2. required PagingController<T> controller,
  3. IRefreshStrategy<T>? strategy,
  4. Widget itemBuilder(
    1. BuildContext context,
    2. T item,
    3. int index
    )?,
  5. Widget childBuilder(
    1. BuildContext context,
    2. IRefreshState<T> state
    )?,
  6. bool enablePullUp = true,
  7. bool enablePullDown = true,
  8. bool? reverse,
  9. ScrollPhysics? physics,
  10. Axis? scrollDirection,
})

Implementation

const SmartRefresh({
  super.key,
  required this.controller,
  this.strategy,
  this.itemBuilder,
  this.childBuilder,
  this.enablePullUp = true,
  this.enablePullDown = true,
  this.reverse,
  this.physics,
  this.scrollDirection,
}) : assert(itemBuilder != null || childBuilder != null);