EasyRefreshConfig class

EasyRefresh 的参数封装,便于按需开启刷新能力。

Constructors

EasyRefreshConfig({EasyRefreshController? controller, Header? header, Footer? footer, FutureOr onRefresh()?, FutureOr onLoad()?, NotRefreshHeader? notRefreshHeader, NotLoadFooter? notLoadFooter, bool? simultaneously, bool? canRefreshAfterNoMore, bool? canLoadAfterNoMore, bool? resetAfterRefresh, bool? refreshOnStart, Header? refreshOnStartHeader, double? callRefreshOverOffset, double? callLoadOverOffset, SpringDescription? spring, FrictionFactor? frictionFactor, ERScrollBehaviorBuilder? scrollBehaviorBuilder, Axis? triggerAxis, ScrollController? scrollController})
const

Properties

callLoadOverOffset double?
调用加载时的额外偏移。
final
callRefreshOverOffset double?
调用刷新时的额外偏移。
final
canLoadAfterNoMore bool?
是否在无更多数据后仍可加载。
final
canRefreshAfterNoMore bool?
是否在无更多数据后仍可刷新。
final
controller EasyRefreshController?
EasyRefresh 控制器。
final
自定义 Footer。
final
frictionFactor FrictionFactor?
越界时的阻尼系数。
final
hashCode int
The hash code for this object.
no setterinherited
自定义 Header。
final
notLoadFooter NotLoadFooter?
无加载能力时的占位 Footer。
final
notRefreshHeader NotRefreshHeader?
无刷新能力时的占位 Header。
final
onLoad FutureOr Function()?
上拉加载回调。
final
onRefresh FutureOr Function()?
下拉刷新回调。
final
refreshOnStart bool?
是否在初始化后自动刷新。
final
refreshOnStartHeader Header?
自动刷新时使用的 Header。
final
resetAfterRefresh bool?
刷新结束后是否重置加载状态。
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollBehaviorBuilder ERScrollBehaviorBuilder?
自定义滚动行为。
final
scrollController ScrollController?
EasyRefresh 关联的滚动控制器。
final
simultaneously bool?
是否允许同时执行刷新与加载。
final
spring SpringDescription?
下拉回弹的物理配置。
final
triggerAxis Axis?
触发刷新的方向。
final

Methods

build({required Widget measuredChild, ScrollController? scrollController, ScrollPhysics? physics, bool outerScroll = true}) Widget
生成 EasyRefresh 实例。
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