SilSmartRefresherWidget class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SilSmartRefresherWidget
Constructors
- SilSmartRefresherWidget({required Widget childBuild(BuildContext context, List data), required Future loadDataFuture({bool? manuallyRefresh, int? page}), required SilSmartRefresherInterface? interface, Key? key, RefreshController? refreshController, List? datas, bool? enablePullUp, bool enablePullDown = true, bool showLoading = true})
-
const
Properties
- childBuild → Widget Function(BuildContext context, List data)
-
子控件,必传
context
data 返回的数据
final
- datas → List?
-
当前列表数据
final
- enablePullDown → bool
-
可以下拉刷新,默认可以
final
- enablePullUp → bool?
-
可以上拉加载更多,默认可以
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- interface → SilSmartRefresherInterface?
-
final
-
没有数据时,是否显示底部的提示,默认不显示
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadDataFuture → Future Function({bool? manuallyRefresh, int? page})
-
加载数据
page 加载的页数
manuallyRefresh 是否手动刷新
final
- refreshController → RefreshController?
-
刷新控件控制
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showLoading → bool
-
显示loading,默认显示
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SilSmartRefresherWidget> -
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