IController class abstract

Constructors

IController()

Properties

buildContext BuildContext?
no setter
hashCode int
The hash code for this object.
no setterinherited
levels List<Level>
no setter
loadLevel Load
getter/setter pair
pageLevel PPage
getter/setter pair
providers List<SingleChildWidget>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

computeErrorState(int page) int
page: 当前加载的页数
computeLoadingState<T>(List<T> originData, List<T>? loadData, int page, {int? total, int? pageRows}) int
originData: 页面中缓存的数据,必须实例化过 loadData: 刚加载来的数据 page: 当前加载的页数 total: 总的数据量 pageRows: 每页加载的总条数 要求total、pageRows两个必须传一次
dispose() → dynamic
fetchMore([bool silence = true]) Future
主动触发加载更多
fetchMoreSilence() Future
静默加载更多
get<T extends Level>() → T?
isMount() bool
load(int page) Future<int>
页面初始化时调用
mount(covariant IState<StatefulWidget, IController> state) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh() Future
刷新页面
silence() Future
静默刷新
toString() String
A string representation of this object.
inherited
unmount() → dynamic
useLevel<T extends Level>([T? level]) bool
当需要使用更多了level时,需要先调用该方法

Operators

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