EasyRefresh.custom constructor
EasyRefresh.custom({
- Key? key,
- Key? listKey,
- EasyRefreshController? controller,
- OnRefreshCallback? onRefresh,
- OnLoadCallback? onLoad,
- bool enableControlFinishRefresh = false,
- bool enableControlFinishLoad = false,
- bool taskIndependence = false,
- Header? header,
- int headerIndex = 0,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? scrollController,
- bool? primary,
- bool shrinkWrap = false,
- Key? center,
- double anchor = 0.0,
- double? cacheExtent,
- int? semanticChildCount,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool firstRefresh = false,
- Widget? firstRefreshWidget,
- Widget? emptyWidget,
- bool topBouncing = true,
- bool bottomBouncing = true,
- ScrollBehavior? behavior = const EmptyOverScrollScrollBehavior(),
- required List<
Widget> ? slivers,
custom构造器(推荐) 直接使用CustomScrollView可用的slivers
Implementation
EasyRefresh.custom({
Key? key,
this.listKey,
this.controller,
this.onRefresh,
this.onLoad,
this.enableControlFinishRefresh = false,
this.enableControlFinishLoad = false,
this.taskIndependence = false,
this.header,
this.headerIndex = 0,
this.footer,
this.scrollDirection = Axis.vertical,
this.reverse = false,
this.scrollController,
this.primary,
this.shrinkWrap = false,
this.center,
this.anchor = 0.0,
this.cacheExtent,
this.semanticChildCount,
this.dragStartBehavior = DragStartBehavior.start,
this.firstRefresh = false,
this.firstRefreshWidget,
this.emptyWidget,
this.topBouncing = true,
this.bottomBouncing = true,
this.behavior = const EmptyOverScrollScrollBehavior(),
required this.slivers,
}) : this.builder = null,
this.child = null,
super(key: key);