copyWith method

RefreshConfig copyWith({
  1. EasyRefreshController? controller,
  2. FutureOr onRefresh()?,
  3. FutureOr onLoading()?,
  4. Header? header,
  5. Footer? footer,
  6. SpringDescription? spring,
  7. FrictionFactor? frictionFactor,
  8. bool? simultaneously,
  9. bool? canRefreshAfterNoMore,
  10. bool? canLoadAfterNoMore,
  11. Axis? triggerAxis,
  12. ERScrollBehaviorBuilder? scrollBehaviorBuilder,
  13. bool? resetAfterRefresh,
  14. bool? refreshOnStart,
  15. Header? refreshOnStartHeader,
  16. double? callRefreshOverOffset,
  17. double? callLoadOverOffset,
  18. StackFit? fit,
  19. Clip? clipBehavior,
  20. ScrollController? scrollController,
  21. NotRefreshHeader? notRefreshHeader,
  22. NotLoadFooter? notLoadFooter,
})

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);