AbsExModel constructor

AbsExModel({
  1. String? pmid,
  2. required ExModelType type,
  3. required String parent,
  4. 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 ?? '';
}