WrapperEasyRefresh.builder constructor
WrapperEasyRefresh.builder({
- Key? key,
- required ERChildBuilder? childBuilder,
- EasyRefreshController? controller,
- Header? header,
- NotRefreshHeader? notRefreshHeader,
- FutureOr onRefresh()?,
- FutureOr 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,
- Color? headerBackgroundColor,
- RefreshNotifier? refreshNotifier,
Implementation
WrapperEasyRefresh.builder({
Key? key,
required ERChildBuilder? childBuilder,
EasyRefreshController? controller,
Header? header,
Footer? footer,
NotRefreshHeader? notRefreshHeader,
NotLoadFooter? notLoadFooter,
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.builder(
key: key,
childBuilder: childBuilder,
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,
),
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,
);