ViewModel class abstract
created by kangkai
Constructors
- ViewModel(BuildContext context)
-
const
Properties
- context → BuildContext
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - 释放资源
-
init(
) → void - 初始化状态
-
initData(
) → void - 加载数据
-
initState(
) → void - 状态初始化
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited