SwipeRefresh.material constructor
const
SwipeRefresh.material({
- required Stream<
SwipeRefreshState> stateStream, - required VoidCallback onRefresh,
- List<
Widget> ? children, - SliverChildDelegate? childrenDelegate,
- Key? key,
- SwipeRefreshState? initState,
- Color? indicatorColor,
- Color? backgroundColor,
- ScrollController? scrollController,
- EdgeInsets? padding,
- bool shrinkWrap = false,
- ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
- ScrollPhysics? physics,
- double? cacheExtent,
Create refresh indicator with Material Design style.
Implementation
const SwipeRefresh.material({
required Stream<SwipeRefreshState> stateStream,
required VoidCallback onRefresh,
List<Widget>? children,
SliverChildDelegate? childrenDelegate,
Key? key,
SwipeRefreshState? initState,
Color? indicatorColor,
Color? backgroundColor,
ScrollController? scrollController,
EdgeInsets? padding,
bool shrinkWrap = false,
ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
ScrollPhysics? physics,
double? cacheExtent,
}) : this(
SwipeRefreshStyle.material,
key: key,
children: children,
childrenDelegate: childrenDelegate,
stateStream: stateStream,
initState: initState,
onRefresh: onRefresh,
indicatorColor: indicatorColor,
backgroundColor: backgroundColor,
scrollController: scrollController,
padding: padding,
shrinkWrap: shrinkWrap,
keyboardDismissBehavior: keyboardDismissBehavior,
physics: physics,
cacheExtent: cacheExtent,
);