copyFrom method

void copyFrom(
  1. AbsExModel src, {
  2. String? newMid,
  3. String? pMid,
})

Implementation

void copyFrom(AbsExModel src, {String? newMid, String? pMid}) {
  _mid = newMid ?? HycopUtils.genMid(type);
  parentMid = UndoAble<String>(pMid ?? src.parentMid.value, mid, 'parentMid');
  order = UndoAble<double>(src.order.value, mid, 'order');
  hashTag = UndoAble<String>(src.hashTag.value, mid, 'hashTag');
  isRemoved = UndoAble<bool>(src.isRemoved.value, mid, 'isRemoved');
  _realTimeKey = src.realTimeKey;
  autoSave = src.autoSave;
}