WrapperEasyRefresh constructor
WrapperEasyRefresh({
- Key? key,
- required Widget? child,
- EasyRefreshController? controller,
- Header? header,
- NotRefreshHeader? notRefreshHeader,
- ERChildBuilder? childBuilder,
- 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({
Key? key,
required Widget? child,
EasyRefreshController? controller,
Header? header,
Footer? footer,
NotRefreshHeader? notRefreshHeader,
NotLoadFooter? notLoadFooter,
ERChildBuilder? childBuilder,
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(
key: key,
child: child,
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,
),
notRefreshHeader: notRefreshHeader,
notLoadFooter: notLoadFooter,
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,
);