YRefresher constructor
const
YRefresher({
- Key? key,
- required RefreshController controller,
- Widget? child,
- Widget? header,
- bool enablePullDown = true,
- bool enablePullUp = false,
- bool enableTwoLevel = false,
- VoidCallback? onRefresh,
- VoidCallback? onLoading,
- OnTwoLevel? onTwoLevel,
- DragStartBehavior? dragStartBehavior,
- bool? primary,
- double? cacheExtent,
- int? semanticChildCount,
- bool? reverse,
- ScrollPhysics? physics,
- Axis? scrollDirection,
- ScrollController? scrollController,
Implementation
const YRefresher(
{super.key,
required this.controller,
this.child,
this.header,
this.footer,
this.enablePullDown = true,
this.enablePullUp = false,
this.enableTwoLevel = false,
this.onRefresh,
this.onLoading,
this.onTwoLevel,
this.dragStartBehavior,
this.primary,
this.cacheExtent,
this.semanticChildCount,
this.reverse,
this.physics,
this.scrollDirection,
this.scrollController})
: builder = null;