copyWith method
RefreshConfig
copyWith({
- EasyRefreshController? controller,
- FutureOr onRefresh()?,
- FutureOr onLoading()?,
- Header? header,
- SpringDescription? spring,
- FrictionFactor? frictionFactor,
- bool? simultaneously,
- bool? canRefreshAfterNoMore,
- bool? canLoadAfterNoMore,
- Axis? triggerAxis,
- ERScrollBehaviorBuilder? scrollBehaviorBuilder,
- bool? resetAfterRefresh,
- bool? refreshOnStart,
- Header? refreshOnStartHeader,
- double? callRefreshOverOffset,
- double? callLoadOverOffset,
- StackFit? fit,
- Clip? clipBehavior,
- ScrollController? scrollController,
- NotRefreshHeader? notRefreshHeader,
Implementation
RefreshConfig copyWith({
EasyRefreshController? controller,
FutureOr Function()? onRefresh,
FutureOr Function()? onLoading,
Header? header,
Footer? footer,
SpringDescription? spring,
FrictionFactor? frictionFactor,
bool? simultaneously,
bool? canRefreshAfterNoMore,
bool? canLoadAfterNoMore,
Axis? triggerAxis,
ERScrollBehaviorBuilder? scrollBehaviorBuilder,
bool? resetAfterRefresh,
bool? refreshOnStart,
Header? refreshOnStartHeader,
double? callRefreshOverOffset,
double? callLoadOverOffset,
StackFit? fit,
Clip? clipBehavior,
ScrollController? scrollController,
NotRefreshHeader? notRefreshHeader,
NotLoadFooter? notLoadFooter,
}) =>
RefreshConfig(
controller: controller ?? this.controller,
onRefresh: onRefresh ?? this.onRefresh,
onLoading: onLoading ?? this.onLoading,
header: header ?? this.header,
footer: footer ?? this.footer,
spring: spring ?? this.spring,
frictionFactor: frictionFactor ?? this.frictionFactor,
simultaneously: simultaneously ?? this.simultaneously,
canRefreshAfterNoMore:
canRefreshAfterNoMore ?? this.canRefreshAfterNoMore,
canLoadAfterNoMore: canLoadAfterNoMore ?? this.canLoadAfterNoMore,
resetAfterRefresh: resetAfterRefresh ?? this.resetAfterRefresh,
refreshOnStart: refreshOnStart ?? this.refreshOnStart,
refreshOnStartHeader:
refreshOnStartHeader ?? this.refreshOnStartHeader,
callRefreshOverOffset:
callRefreshOverOffset ?? this.callRefreshOverOffset,
callLoadOverOffset: callLoadOverOffset ?? this.callLoadOverOffset,
fit: fit ?? this.fit,
clipBehavior: clipBehavior ?? this.clipBehavior,
scrollController: scrollController ?? this.scrollController,
notLoadFooter: notLoadFooter ?? this.notLoadFooter,
notRefreshHeader: notRefreshHeader ?? this.notRefreshHeader,
triggerAxis: triggerAxis ?? this.triggerAxis,
scrollBehaviorBuilder:
scrollBehaviorBuilder ?? this.scrollBehaviorBuilder);