findSameEntity method

ModelEntity? findSameEntity(
  1. ModelEntity other
)

Implementation

ModelEntity? findSameEntity(ModelEntity other) {
  ModelEntity? ret;
  if (other.id.uid != 0) ret = findEntityByUid(other.id.uid);
  return ret ?? findEntityByName(other.name);
}