MaterialSwipeRefresh constructor

const MaterialSwipeRefresh({
  1. required Stream<SwipeRefreshState> stateStream,
  2. required VoidCallback onRefresh,
  3. Color? indicatorColor,
  4. List<Widget>? children,
  5. SliverChildDelegate? childrenDelegate,
  6. SwipeRefreshState? initState,
  7. Color? backgroundColor,
  8. EdgeInsets? padding,
  9. ScrollController? scrollController,
  10. bool shrinkWrap = false,
  11. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  12. ScrollPhysics? physics,
  13. Key? key,
  14. double? cacheExtent,
})

Implementation

const MaterialSwipeRefresh({
  required Stream<SwipeRefreshState> stateStream,
  required VoidCallback onRefresh,
  this.indicatorColor,
  List<Widget>? children,
  SliverChildDelegate? childrenDelegate,
  SwipeRefreshState? initState,
  Color? backgroundColor,
  EdgeInsets? padding,
  ScrollController? scrollController,
  bool shrinkWrap = false,
  ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  ScrollPhysics? physics,
  Key? key,
  this.cacheExtent,
})  : backgroundColor = backgroundColor ?? Colors.white,
      super(
        key: key,
        children: children,
        childrenDelegate: childrenDelegate,
        stateStream: stateStream,
        initState: initState,
        onRefresh: onRefresh,
        scrollController: scrollController,
        padding: padding,
        shrinkWrap: shrinkWrap,
        keyboardDismissBehavior: keyboardDismissBehavior,
        physics: physics,
      );