Load class

控制页面的刷新、加载更多、初始化数据失败等等情况下的ui切换 Scaffold( body: Column( children: ... , ), ).load(),

通过修改load.status来进行ui切换

Inheritance

Constructors

Load(IController controller)

Properties

controller IController
final
currentPage int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isActive bool
no setterinherited
loadStatus int
getter/setter pair
moreStatus int
getter/setter pair
refreshController → RefreshController
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
no getter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
fetchMore() Future
fetchMoreSilence() Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → dynamic
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
refresh() Future
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
silence() Future
toString() String
A string representation of this object.
inherited

Operators

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