copyOf method
RefreshConfiguration
copyOf({
- required Widget child,
- IndicatorBuilder? headerBuilder,
- double? dragSpeedRatio,
- 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,
- bool? enableRefreshVibrate,
- bool? enableLoadMoreVibrate,
- EmptyConfig? emptyConfig,
- int? initPage,
- 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,
);
}