BasePageModel class abstract

Inheritance
Implementers

Constructors

BasePageModel.new(BuildContext context)

Properties

context BuildContext
finalinherited
enableLoadMore bool
no setter
errorCode int?
no setter
errorMessage String?
no setter
errorMessageWithCode String
no setter
errorResponse ResponseData?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
pageState LiveData<PageState>
getter/setter pair
refreshController → RefreshController
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state LiveData
finalinherited

Methods

dispose() → void
释放资源
override
init() → void
初始化状态
inherited
initData() Future
数初始化页面数据 刷新页面调用refreshData
override
initState() → void
状态初始化
inherited
loading() → void
显示loading
loadMoreData() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEmpty() → void
没有数据 更新UI
onError({required ResponseData responseData}) → void
出错 更新UI
onSuccess() → void
请求数据成功 更新UI
refreshData([bool needLoading = false]) Future
刷新数据 会重置加载状态
setState() → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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