RefreshNotifier<T> class

Constructors

RefreshNotifier()

Properties

bind ↔ dynamic
getter/setter pair
cancelToken ↔ CancelToken?
请求取消令牌
getter/setter pair
commonParams Map<String, dynamic>
no setter
easyRefreshController EasyRefreshController
刷新控制器
final
hashCode int
The hash code for this object.
no setterinherited
jsonParse List<T> Function(Map<String, dynamic>)
json数据解析
getter/setter pair
listData List<T>
列表数据
getter/setter pair
listSize int
no setter
onBegin ↔ dynamic Function(bool loadMore)?
getter/setter pair
onCommon ↔ dynamic Function(bool loadMore)?
getter/setter pair
onFailed ↔ dynamic Function(int? stateCode, DioException? error, bool loadMore)?
getter/setter pair
onSuccess ↔ dynamic Function(Map<String, dynamic> data, bool loadMore)?
getter/setter pair
page int
当前页
getter/setter pair
pageSize int?
请求页大小
getter/setter pair
params Map<String, dynamic>
no setter
perPage int
no setter
requestOptions ↔ Options?
请求额外参数
getter/setter pair
requestParams Map<String, dynamic>?
请求参数
getter/setter pair
requestUrl String
请求链接
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

loadMore() Future
加载更多
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh() Future
刷新
setup({required String requestUrl, Map<String, dynamic>? requestParams, Options? requestOptions, CancelToken? cancelToken, required List<T> jsonParse(Map<String, dynamic>), int page = 1, int? pageSize, dynamic onBegin(bool loadMore)?, dynamic onSuccess(Map<String, dynamic> data, bool loadMore)?, dynamic onFailed(int? stateCode, DioException? error, bool loadMore)?, dynamic onCommon(bool loadMore)?, dynamic bind}) → void
toString() String
A string representation of this object.
inherited
updateParams(Map<String, dynamic> params) → void

Operators

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