AbsExModel constructor
AbsExModel({
- String? pmid,
- required ExModelType type,
- required String parent,
- String? realTimeKey,
Implementation
AbsExModel({String? pmid, required this.type, required String parent, String? realTimeKey}) {
if (pmid == null || pmid.isEmpty) {
_mid = HycopUtils.genMid(type);
} else {
_mid = pmid;
}
parentMid = UndoAble<String>(parent, mid, 'parentMid');
order = UndoAble<double>(1, mid, 'order');
hashTag = UndoAble<String>('', mid, 'hashTag');
isRemoved = UndoAble<bool>(false, mid, 'isRemoved');
_realTimeKey = realTimeKey ?? '';
}