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 noMoreRefresh = false,
- bool noMoreLoad = false,
- bool resetAfterRefresh = true,
- bool refreshOnStart = false,
- BuilderHeader? refreshOnStartHeader,
- double callRefreshOverOffset = 20,
- 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);