EasyRefresh constructor
const
EasyRefresh({
- Key? key,
- required Widget? child,
- EasyRefreshController? controller,
- Header? header,
- FutureOr onRefresh()?,
- FutureOr onLoad()?,
- SpringDescription? spring,
- FrictionFactor? frictionFactor,
- NotRefreshHeader? notRefreshHeader,
- bool simultaneously = false,
- bool canRefreshAfterNoMore = false,
- bool canLoadAfterNoMore = false,
- bool resetAfterRefresh = true,
- 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,
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.');