SwipeRefresh.material constructor

const SwipeRefresh.material({
  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. ScrollController? scrollController,
  10. EdgeInsets? padding,
  11. bool shrinkWrap = false,
  12. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  13. ScrollPhysics? physics,
  14. 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,
      );