EasyRefresh constructor

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

Implementation

const EasyRefresh({
  super.key,
  required this.child,
  this.controller,
  this.header,
  this.footer,
  this.onRefresh,
  this.onLoad,
  this.spring,
  this.frictionFactor,
  this.notRefreshHeader,
  this.notLoadFooter,
  this.simultaneously = false,
  this.canRefreshAfterNoMore = false,
  this.canLoadAfterNoMore = false,
  this.resetAfterRefresh = true,
  this.refreshOnStart = false,
  this.refreshOnStartHeader,
  this.callRefreshOverOffset = 20,
  this.callLoadOverOffset = 20,
  this.fit = StackFit.loose,
  this.clipBehavior = Clip.hardEdge,
  this.scrollBehaviorBuilder,
  this.scrollController,
  this.triggerAxis,
})  : childBuilder = null,
      assert(callRefreshOverOffset > 0,
          'callRefreshOverOffset must be greater than 0.'),
      assert(callLoadOverOffset > 0,
          'callLoadOverOffset must be greater than 0.');