SwipeRefresh.adaptive constructor

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

Create refresh indicator adaptive to platform.

Implementation

const SwipeRefresh.adaptive({
  required Stream<SwipeRefreshState> stateStream,
  required VoidCallback onRefresh,
  List<Widget>? children,
  SliverChildDelegate? childrenDelegate,
  Key? key,
  SwipeRefreshState? initState,
  Color? indicatorColor,
  Color? backgroundColor,
  double? refreshTriggerPullDistance,
  double? refreshIndicatorExtent,
  RefreshControlIndicatorBuilder? indicatorBuilder,
  ScrollController? scrollController,
  EdgeInsets? padding,
  bool shrinkWrap = false,
  ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  ScrollPhysics? physics,
  PlatformWrapper? platform,
  double? cacheExtent,
}) : this(
        SwipeRefreshStyle.adaptive,
        key: key,
        children: children,
        childrenDelegate: childrenDelegate,
        stateStream: stateStream,
        initState: initState,
        onRefresh: onRefresh,
        indicatorColor: indicatorColor,
        backgroundColor: backgroundColor,
        refreshTriggerPullDistance: refreshTriggerPullDistance,
        refreshIndicatorExtent: refreshIndicatorExtent,
        indicatorBuilder: indicatorBuilder,
        scrollController: scrollController,
        padding: padding,
        shrinkWrap: shrinkWrap,
        keyboardDismissBehavior: keyboardDismissBehavior,
        physics: physics,
        platform: platform,
        cacheExtent: cacheExtent,
      );