CupertinoSwipeRefresh constructor

const CupertinoSwipeRefresh({
  1. required Stream<SwipeRefreshState> stateStream,
  2. required VoidCallback onRefresh,
  3. double refreshTriggerPullDistance = defaultRefreshTriggerPullDistance,
  4. double refreshIndicatorExtent = defaultRefreshIndicatorExtent,
  5. RefreshControlIndicatorBuilder indicatorBuilder = CupertinoSliverRefreshControl.buildRefreshIndicator,
  6. List<Widget>? children,
  7. SliverChildDelegate? childrenDelegate,
  8. SwipeRefreshState? initState,
  9. EdgeInsets? padding,
  10. ScrollController? scrollController,
  11. bool shrinkWrap = false,
  12. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  13. ScrollPhysics? physics,
  14. Key? key,
  15. 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,
      );