MaterialSwipeRefresh constructor
const
MaterialSwipeRefresh({
- required Stream<
SwipeRefreshState> stateStream, - required VoidCallback onRefresh,
- Color? indicatorColor,
- List<
Widget> ? children, - SliverChildDelegate? childrenDelegate,
- SwipeRefreshState? initState,
- Color? backgroundColor,
- EdgeInsets? padding,
- ScrollController? scrollController,
- bool shrinkWrap = false,
- ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
- ScrollPhysics? physics,
- Key? key,
- 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,
);