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 noMoreRefresh = false,
  14. bool noMoreLoad = false,
  15. bool resetAfterRefresh = true,
  16. bool refreshOnStart = false,
  17. BuilderHeader? refreshOnStartHeader,
  18. double callRefreshOverOffset = 20,
  19. double callLoadOverOffset = 20,
})

Implementation

const EasyRefresh({
  Key? 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.noMoreRefresh = false,
  this.noMoreLoad = false,
  this.resetAfterRefresh = true,
  this.refreshOnStart = false,
  this.refreshOnStartHeader,
  this.callRefreshOverOffset = 20,
  this.callLoadOverOffset = 20,
})  : childBuilder = null,
      assert(callRefreshOverOffset > 0,
          'callRefreshOverOffset must be greater than 0.'),
      assert(callLoadOverOffset > 0,
          'callLoadOverOffset must be greater than 0.'),
      super(key: key);