RefreshListWidget class
列表刷新控件 child 被刷新视图 onInitialize 初始化回调 onRefresh 刷新回调 onLoad 加载回调 enableControlFinishRefresh true-需要主动调用结束刷新状态,false-自动处理; enableControlFinishLoad true-需要主动调用结束加载状态,false-自动处理; isAutoLoad true-自动加载首页数据,反之不加载; firstLoadType 首次自动加载列表方式 emptyWidget 空视图
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- RefreshListWidget
Constructors
- RefreshListWidget({required Widget child, OnInitializeCall? onInitialize, OnRefreshCall? onRefresh, OnLoadCall? onLoad, bool enableControlFinishRefresh = true, bool enableControlFinishLoad = true, bool isAutoLoad = true, FirstLoadType firstLoadType = FirstLoadType.pull, Widget? emptyWidget, bool? isVisibilityFirstLoadWidget, ScrollController? scrollController, OnFinishLoadCall? finishLoadCall, Widget? loadIndicatorWidget})
Properties
- child → Widget
-
final
- emptyWidget → Widget?
-
final
- enableControlFinishLoad → bool
-
final
- enableControlFinishRefresh → bool
-
final
- finishLoadCall → OnFinishLoadCall?
-
final
- firstLoadType → FirstLoadType
-
final
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAutoLoad → bool
-
final
- isVisibilityFirstLoadWidget → bool?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadIndicatorWidget → Widget?
-
final
- onInitialize → OnInitializeCall?
-
final
- onLoad → OnLoadCall?
-
final
- onRefresh → OnRefreshCall?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _CSRefreshState -
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, int wrapWidth = 65}) → 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