PqPreLoader class
预加载控制器,可应用于列表进行预加载功能
Constructors
- PqPreLoader(ScrollController scrollController, {double preloadDistanceLimit = DEFAULT_PRELOAD_DISTANCE_LIMIT, required LoadMoreListener loadMoreListener})
-
构造方法,需要传入滚动控制器ScrollController
scrollController
和加载更多loadMoreListener的回调, 以及一个有预设值的距离preloadDistanceLimit
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- loadMoreListener → LoadMoreListener
-
加载更多的回调
final
- preloadDistanceLimit → double
-
预加载高度
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController
-
滚动控制器
final
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
Constants
- DEFAULT_PRELOAD_DISTANCE_LIMIT → const double
- 默认的触发与预加载的剩余滑动距离