BaseFloorViewModel<T extends FloorBaseModel> class abstract

base_viewmodel.dart

所有楼层 ViewModel 的基类,绑定泛型模型,负责业务数据逻辑处理。

具体业务 ViewModel 继承自此类,访问 model 数据并对 UI 提供数据。

Constructors

BaseFloorViewModel(T model)

Properties

dataMap Map<String, dynamic>
楼层动态数据字典
no setter
floorId String
楼层ID快捷访问
no setter
hashCode int
The hash code for this object.
no setterinherited
model → T
绑定的楼层数据模型
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

init() → 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