RefreshUtils class
author:lx 基于SmartRefresher的封装:下拉刷新、上拉加载更多、空视图、错误视图、重新加载 1.空视图的时候只能下拉刷新,不能上拉 2.错误视图的时候只能重新加载,不能上拉和下拉
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Properties
- color_main_Org ↔ Color?
-
getter/setter pair
- emptyWidgetOrg ↔ Widget?
-
getter/setter pair
- errorWidgetOrg ↔ Widget?
-
getter/setter pair
- notNetWidgetOrg ↔ Widget?
-
getter/setter pair
Static Methods
-
init(
RefreshController refreshController, VoidCallback? onRefresh, VoidCallback? onLoading, Widget childWidget, {Key? key, bool enablePullDown = false, bool enablePullUp = false, ScrollPhysics physics = const BouncingScrollPhysics(), RefreshState loadStatus = RefreshState.INIT, Widget? errorWidget, Widget? emptyWidget, Widget? notNetWidget, VoidCallback? onReLoadData, VoidCallback? onReFreshFunction, bool isCanMoreData = true, ScrollController? scrollController}) → dynamic -
setData(
{Widget? errorWidget, Widget? emptyWidget, Widget? notNetWidget, Color? color_main}) → dynamic