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