PqListView<T extends DisposableInterface> class

Inheritance
Available Extensions

Constructors

PqListView({Key? key, required T controller, required ListItemBuilder itemBuilder, required int itemCount, ListItemBuilder? separatorBuilder, EasyRefreshController? refreshController, Future<void> onRefresh()?, Future<void> onLoadMore()?, ScrollController? scrollController, Header? header, Footer? footer, bool firstRefresh = false, EdgeInsetsGeometry? padding, bool topBouncing = true, bool bottomBouncing = true, bool preloading = false, double preloadingDistanceLimit = PqPreLoader.DEFAULT_PRELOAD_DISTANCE_LIMIT, bool autoAddNoMoreView = true, Widget? noMoreDataView})

Properties

autoAddNoMoreView bool
自动添加没有更多视图 PqNoMoreDataView
final
bottomBouncing bool
底部回弹(Footer的overScroll属性优先,且onLoad和footer都为null时生效)
final
controller → T
GetController,这里建议传入PqListController,当controller是YhListController 会根据nextId自行处理是否显示上拉加载更多功能
final
firstRefresh bool
是否开启首次刷新
final
刷新脚
final
hashCode int
The hash code for this object.
no setterinherited
刷新头
final
itemBuilder ListItemBuilder
列表Cell的构建
final
itemCount int
列表的长度
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
noMoreDataView Widget?
没有更多视图的View
final
onLoadMore → (Future<void> Function()?)
加载更多
final
onRefresh → (Future<void> Function()?)
刷新
final
padding EdgeInsetsGeometry?
List view padding
final
preloading bool
是否开启预加载 默认是关闭状态
final
preloadingDistanceLimit double
预加载高度 默认是PqPreLoader.DEFAULT_PRELOAD_DISTANCE_LIMIT
final
refreshController EasyRefreshController
刷新controller
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
滚动controller
final
separatorBuilder ListItemBuilder?
列表分割线的构建
final
topBouncing bool
顶部回弹(Header的overScroll属性优先,且onRefresh和header都为null时生效)
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _PqListViewState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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