WrapperEasyRefresh constructor

WrapperEasyRefresh({
  1. Key? key,
  2. required Widget? child,
  3. EasyRefreshController? controller,
  4. Header? header,
  5. Footer? footer,
  6. NotRefreshHeader? notRefreshHeader,
  7. NotLoadFooter? notLoadFooter,
  8. ERChildBuilder? childBuilder,
  9. FutureOr onRefresh()?,
  10. FutureOr onLoad()?,
  11. SpringDescription? spring,
  12. FrictionFactor? frictionFactor,
  13. bool simultaneously = false,
  14. bool canRefreshAfterNoMore = false,
  15. bool canLoadAfterNoMore = false,
  16. bool resetAfterRefresh = false,
  17. bool refreshOnStart = false,
  18. Header? refreshOnStartHeader,
  19. double callRefreshOverOffset = 20,
  20. double callLoadOverOffset = 20,
  21. StackFit fit = StackFit.loose,
  22. Clip clipBehavior = Clip.hardEdge,
  23. ERScrollBehaviorBuilder? scrollBehaviorBuilder,
  24. ScrollController? scrollController,
  25. Axis? triggerAxis,
  26. bool headerClamping = false,
  27. bool footerClamping = false,
  28. Color? headerBackgroundColor,
  29. Color? footerBackgroundColor,
  30. RefreshNotifier? refreshNotifier,
})

Implementation

WrapperEasyRefresh({
  Key? key,
  required Widget? child,
  EasyRefreshController? controller,
  Header? header,
  Footer? footer,
  NotRefreshHeader? notRefreshHeader,
  NotLoadFooter? notLoadFooter,
  ERChildBuilder? childBuilder,
  FutureOr Function()? onRefresh,
  FutureOr Function()? onLoad,
  SpringDescription? spring,
  FrictionFactor? frictionFactor,
  bool simultaneously = false,
  bool canRefreshAfterNoMore = false,
  bool canLoadAfterNoMore = false,
  bool resetAfterRefresh = false,
  bool refreshOnStart = false,
  Header? refreshOnStartHeader,
  double callRefreshOverOffset = 20,
  double callLoadOverOffset = 20,
  StackFit fit = StackFit.loose,
  Clip clipBehavior = Clip.hardEdge,
  ERScrollBehaviorBuilder? scrollBehaviorBuilder,
  ScrollController? scrollController,
  Axis? triggerAxis,
  bool headerClamping = false,
  bool footerClamping = false,
  Color? headerBackgroundColor,
  Color? footerBackgroundColor,
  RefreshNotifier? refreshNotifier,
}) : super(
        key: key,
        child: child,
        controller: controller ?? refreshNotifier?.easyRefreshController,
        header: header ??
            _header?.call(headerClamping, headerBackgroundColor) as Header? ??
            BallPulseHeader(
              clamping: headerClamping,
              backgroundColor: headerBackgroundColor,
            ),
        footer: footer ??
            _footer?.call(footerClamping, footerBackgroundColor) as Footer? ??
            BallPulseFooter(
              clamping: footerClamping,
              backgroundColor: footerBackgroundColor,
            ),
        notRefreshHeader: notRefreshHeader,
        notLoadFooter: notLoadFooter,
        onRefresh: onRefresh ?? refreshNotifier?.refresh,
        onLoad: onLoad ?? refreshNotifier?.loadMore,
        spring: spring,
        frictionFactor: frictionFactor,
        simultaneously: simultaneously,
        canRefreshAfterNoMore: canRefreshAfterNoMore,
        canLoadAfterNoMore: canLoadAfterNoMore,
        resetAfterRefresh: resetAfterRefresh,
        refreshOnStart: refreshOnStart,
        refreshOnStartHeader: refreshOnStartHeader,
        callRefreshOverOffset: callRefreshOverOffset,
        callLoadOverOffset: callLoadOverOffset,
        fit: fit,
        clipBehavior: clipBehavior,
        scrollBehaviorBuilder: scrollBehaviorBuilder,
        scrollController: scrollController,
        triggerAxis: triggerAxis,
      );