updateOnRefresh method

PullableConfig updateOnRefresh(
  1. Future<void> newOnRefresh()?
)

Implementation

PullableConfig updateOnRefresh(Future<void> Function()? newOnRefresh) {
  return PullableConfig(
    enablePullDown: enablePullDown,
    enablePullUp: enablePullUp,
    physics: physics,
    onRefresh: newOnRefresh ?? onRefresh,
    onLoading: onLoading,
    headerType: headerType,
    customHeader: customHeader,
    customFooter: customFooter,
    refreshCompleteDelay: refreshCompleteDelay,
    loadCompleteDelay: loadCompleteDelay,
    enableOverScroll: enableOverScroll,
    cacheExtent: cacheExtent,
    semanticChildCount: semanticChildCount,
    dragStartBehavior: dragStartBehavior,
  );
}