TitleVM class
- Inheritance
-
- Object
- ChangeNotifier
- TitleVM
Constructors
- TitleVM()
Properties
- busy → bool
-
以下变量是为了代码书写方便,加入的变量.严格意义上讲,并不严谨
no setterinherited
- checkEmpty ↔ bool
-
判断List 空的简便方法
getter/setter pairinherited
- defaultOfParams ↔ dynamic
-
默认参数
getter/setter pairinherited
- empty → bool
-
no setterinherited
- entity ↔ BaseEntity?
-
entity 实体类 数据
getter/setter pairinherited
- error → bool
-
no setterinherited
- errorMessage → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- idle → bool
-
no setterinherited
- model ↔ BaseModel
-
model API
getter/setter pairinherited
-
portMap
→ Map<
String, EventListen> -
端口 key 跟 回调监听
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → dynamic
-
no setter
- unAuthorized → bool
-
no setterinherited
- viewState ↔ ViewModelState
-
getter/setter pairinherited
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
-
eventButAdd(
String key, EventListen listen) → bool -
端口添加 绑定端口跟回调
inherited
-
eventButDelete(
String key) → bool -
端口删除
inherited
-
getModel(
) → BaseModel? -
inherited
-
handleCatch(
dynamic e, dynamic s, {bool hintError = true}) → void -
Handle Error and Exception
统一处理子类的异常情况
e
,有可能是Error,也有可能是Exception.所以需要判断处理s
为堆栈信息inherited -
init(
) → void -
inherited
-
initResultData(
) → void -
初始化返回数据
inherited
-
isHttp(
) → bool -
数据获取方式 是否是通过网络获取 可全局配置,子类覆写优先级最高
inherited
-
isSaveVM(
) → bool -
保存VM
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
pageRefresh(
{bool busy = false, bool globalRefresh = true}) → Future< void> -
页面刷新 默认全局刷新,并不显示加载过程
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
requestData(
bool isLoad, int page, {dynamic params}) → Future< DataResponse< BaseEntity> ?> -
非http请求
inherited
-
requestHttp(
bool isLoad, int page, {dynamic params}) → Future< DataResponse< ?BaseEntity> ?> -
http请求
inherited
-
setBusy(
bool value) → void -
inherited
-
setEmpty(
) → void -
inherited
-
setError(
String message) → void -
inherited
-
setTitle(
String? title, {dynamic notify = true, bool allowNull = false}) → dynamic -
setUnAuthorized(
) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
viewRefresh(
{dynamic params, bool notifier = true, bool busy = true, bool rootRefresh = false}) → Future< void> -
首次进入页面,主动调用页面刷新如果开启根布局不刷新设置
ViewConfig.noRoot
rootRefresh
需要根布局刷新 设置 trueinherited -
waitDispose(
) → List -
存放需要
dispose
的对象inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited