CupertinoSwipeRefresh constructor
const
CupertinoSwipeRefresh({
- required Stream<
SwipeRefreshState> stateStream, - required VoidCallback onRefresh,
- double refreshTriggerPullDistance = defaultRefreshTriggerPullDistance,
- double refreshIndicatorExtent = defaultRefreshIndicatorExtent,
- RefreshControlIndicatorBuilder indicatorBuilder = CupertinoSliverRefreshControl.buildRefreshIndicator,
- List<
Widget> ? children, - SliverChildDelegate? childrenDelegate,
- SwipeRefreshState? initState,
- EdgeInsets? padding,
- ScrollController? scrollController,
- bool shrinkWrap = false,
- ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
- ScrollPhysics? physics,
- Key? key,
- double? cacheExtent,
Implementation
const CupertinoSwipeRefresh({
required Stream<SwipeRefreshState> stateStream,
required VoidCallback onRefresh,
this.refreshTriggerPullDistance = defaultRefreshTriggerPullDistance,
this.refreshIndicatorExtent = defaultRefreshIndicatorExtent,
this.indicatorBuilder = CupertinoSliverRefreshControl.buildRefreshIndicator,
List<Widget>? children,
SliverChildDelegate? childrenDelegate,
SwipeRefreshState? initState,
EdgeInsets? padding,
ScrollController? scrollController,
bool shrinkWrap = false,
ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
ScrollPhysics? physics,
Key? key,
this.cacheExtent,
}) : super(
key: key,
children: children,
childrenDelegate: childrenDelegate,
stateStream: stateStream,
initState: initState,
onRefresh: onRefresh,
scrollController: scrollController,
padding: padding,
shrinkWrap: shrinkWrap,
keyboardDismissBehavior: keyboardDismissBehavior,
physics: physics,
);