RefreshConfig class

Constructors

RefreshConfig({EasyRefreshController? controller, FutureOr onRefresh()?, FutureOr onLoading()?, Header? header, Footer? footer, SpringDescription? spring, FrictionFactor? frictionFactor, bool simultaneously = false, bool noMoreRefresh = false, bool noMoreLoad = 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})

Properties

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

Methods

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