SwipeRefresh.adaptive constructor
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,
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,
);