copyOf method

RefreshConfiguration copyOf({
  1. required Widget child,
  2. IndicatorBuilder? headerBuilder,
  3. IndicatorBuilder? footerBuilder,
  4. double? dragSpeedRatio,
  5. ShouldFollowContent? shouldFooterFollowWhenNotFull,
  6. bool? enableScrollWhenTwoLevel,
  7. bool? enableBallisticRefresh,
  8. bool? enableBallisticLoad,
  9. bool? enableLoadingWhenNoData,
  10. SpringDescription? springDescription,
  11. bool? enableScrollWhenRefreshCompleted,
  12. bool? enableLoadingWhenFailed,
  13. double? twiceTriggerDistance,
  14. double? closeTwoLevelDistance,
  15. bool? skipCanRefresh,
  16. double? maxOverScrollExtent,
  17. double? maxUnderScrollExtent,
  18. double? topHitBoundary,
  19. double? bottomHitBoundary,
  20. double? headerTriggerDistance,
  21. double? footerTriggerDistance,
  22. bool? enableRefreshVibrate,
  23. bool? enableLoadMoreVibrate,
  24. bool? hideFooterWhenNotFull,
  25. EmptyConfig? emptyConfig,
  26. int? initPage,
  27. EmptyBuilder? emptyBuilder,
})

Implementation

RefreshConfiguration copyOf({
  required Widget child,
  IndicatorBuilder? headerBuilder,
  IndicatorBuilder? footerBuilder,
  double? dragSpeedRatio,
  ShouldFollowContent? shouldFooterFollowWhenNotFull,
  bool? enableScrollWhenTwoLevel,
  bool? enableBallisticRefresh,
  bool? enableBallisticLoad,
  bool? enableLoadingWhenNoData,
  SpringDescription? springDescription,
  bool? enableScrollWhenRefreshCompleted,
  bool? enableLoadingWhenFailed,
  double? twiceTriggerDistance,
  double? closeTwoLevelDistance,
  bool? skipCanRefresh,
  double? maxOverScrollExtent,
  double? maxUnderScrollExtent,
  double? topHitBoundary,
  double? bottomHitBoundary,
  double? headerTriggerDistance,
  double? footerTriggerDistance,
  bool? enableRefreshVibrate,
  bool? enableLoadMoreVibrate,
  bool? hideFooterWhenNotFull,
  EmptyConfig? emptyConfig,
  int? initPage,
  EmptyBuilder? emptyBuilder,
}) {
  return RefreshConfiguration(
    headerBuilder: headerBuilder ?? this.headerBuilder,
    footerBuilder: footerBuilder ?? this.footerBuilder,
    dragSpeedRatio: dragSpeedRatio ?? this.dragSpeedRatio,
    shouldFooterFollowWhenNotFull:
        shouldFooterFollowWhenNotFull ?? this.shouldFooterFollowWhenNotFull,
    enableScrollWhenTwoLevel:
        enableScrollWhenTwoLevel ?? this.enableScrollWhenTwoLevel,
    enableLoadingWhenNoData:
        enableLoadingWhenNoData ?? this.enableLoadingWhenNoData,
    enableBallisticRefresh:
        enableBallisticRefresh ?? this.enableBallisticRefresh,
    springDescription: springDescription ?? this.springDescription,
    enableScrollWhenRefreshCompleted: enableScrollWhenRefreshCompleted ??
        this.enableScrollWhenRefreshCompleted,
    enableLoadingWhenFailed:
        enableLoadingWhenFailed ?? this.enableLoadingWhenFailed,
    twiceTriggerDistance: twiceTriggerDistance ?? this.twiceTriggerDistance,
    closeTwoLevelDistance:
        closeTwoLevelDistance ?? this.closeTwoLevelDistance,
    skipCanRefresh: skipCanRefresh ?? this.skipCanRefresh,
    maxOverScrollExtent: maxOverScrollExtent ?? this.maxOverScrollExtent,
    enableBallisticLoad: enableBallisticLoad ?? this.enableBallisticLoad,
    maxUnderScrollExtent: maxUnderScrollExtent ?? this.maxUnderScrollExtent,
    headerTriggerDistance:
        headerTriggerDistance ?? this.headerTriggerDistance,
    footerTriggerDistance:
        footerTriggerDistance ?? this.footerTriggerDistance,
    hideFooterWhenNotFull:
        hideFooterWhenNotFull ?? this.hideFooterWhenNotFull,
    enableRefreshVibrate: enableRefreshVibrate ?? this.enableRefreshVibrate,
    enableLoadMoreVibrate:
        enableLoadMoreVibrate ?? this.enableLoadMoreVibrate,
    topHitBoundary: topHitBoundary ?? this.topHitBoundary,
    bottomHitBoundary: bottomHitBoundary ?? this.bottomHitBoundary,
    child: child,
  );
}