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