findSameEntity method

ModelEntity? findSameEntity(
  1. ModelEntity other
)

Implementation

ModelEntity? findSameEntity(ModelEntity other) => other.id.uid == 0
    ? findEntityByName(other.name)
    : findEntityByUid(other.id.uid);