RefreshConfig class

Constructors

RefreshConfig({EasyRefreshController? controller, FutureOr onRefresh()?, FutureOr onLoading()?, Header? header, Footer? footer, SpringDescription? spring, FrictionFactor? frictionFactor, 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, ScrollController? scrollController, NotLoadFooter? notLoadFooter, NotRefreshHeader? notRefreshHeader, Axis? triggerAxis, ERScrollBehaviorBuilder? scrollBehaviorBuilder})
const

Properties

callLoadOverOffset double
Offset beyond trigger offset when calling load. Used when EasyRefreshController.callLoad.
final
callRefreshOverOffset double
Offset beyond trigger offset when calling refresh. Used when refreshOnStart is true and EasyRefreshController.callRefresh.
final
canLoadAfterNoMore bool
Is it possible to load after there is no more.
final
canRefreshAfterNoMore bool
Is it possible to refresh after there is no more.
final
clipBehavior Clip
See Stack.clipBehavior.
final
controller EasyRefreshController?
可不传controller, 若想关闭刷新组件可以通过发送消息 sendRefreshType(RefreshCompletedType.refresh);
final
fit StackFit
See Stack.StackFit
final
CustomFooter
final
frictionFactor FrictionFactor?
Friction factor when list is out of bounds.
final
hashCode int
The hash code for this object.
no setterinherited
CustomHeader
final
notLoadFooter NotLoadFooter?
Overscroll behavior when onLoad is null. Won't build widget.
final
notRefreshHeader NotRefreshHeader?
Overscroll behavior when onRefresh is null. Won't build widget.
final
onLoading → (FutureOr Function()?)
上拉加载回调(null为不开启加载)
final
onRefresh → (FutureOr Function()?)
下拉刷新回调(null为不开启刷新)
final
refreshOnStart bool
Refresh on start. When the EasyRefresh build is complete, trigger the refresh.
final
refreshOnStartHeader Header?
Header for refresh on start. Use header when null.
final
resetAfterRefresh bool
Reset after refresh when no more deactivation is loaded.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollBehaviorBuilder ERScrollBehaviorBuilder?
use ERScrollBehavior by default.
final
scrollController ScrollController?
When the position cannot be determined, such as NestedScrollView. Mainly used to trigger events.
final
simultaneously bool
Refresh and load can be performed simultaneously.
final
spring SpringDescription?
Structure that describes a spring's constants. When spring is not set in Header and Footer.
final
triggerAxis Axis?
Direction of execution. Other scroll directions will not show indicators and perform task.
final

Methods

copyWith({EasyRefreshController? controller, FutureOr onRefresh()?, FutureOr onLoading()?, Header? header, Footer? footer, SpringDescription? spring, FrictionFactor? frictionFactor, bool? simultaneously, bool? canRefreshAfterNoMore, bool? canLoadAfterNoMore, Axis? triggerAxis, ERScrollBehaviorBuilder? scrollBehaviorBuilder, bool? resetAfterRefresh, bool? refreshOnStart, Header? refreshOnStartHeader, double? callRefreshOverOffset, double? callLoadOverOffset, StackFit? fit, Clip? clipBehavior, ScrollController? scrollController, NotRefreshHeader? notRefreshHeader, NotLoadFooter? notLoadFooter}) RefreshConfig
marge([RefreshConfig? config]) RefreshConfig
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited