SmartRefresh<T> constructor
const
SmartRefresh<T> ({
- Key? key,
- required PagingController<
T> controller, - IRefreshStrategy<
T> ? strategy, - Widget itemBuilder(
- BuildContext context,
- T item,
- int index
- Widget childBuilder(
- BuildContext context,
- IRefreshState<
T> state
- bool enablePullUp = true,
- bool enablePullDown = true,
- bool? reverse,
- ScrollPhysics? physics,
- 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);