containsUid method

bool containsUid(
  1. int uid
)

Implementation

bool containsUid(int uid) {
  if (lastEntityId.uid == uid) return true;
  if (lastIndexId.uid == uid) return true;
  if (lastRelationId.uid == uid) return true;
  if (lastSequenceId.uid == uid) return true;
  if (entities.indexWhere((e) => e.containsUid(uid)) != -1) return true;
  if (retiredEntityUids.contains(uid)) return true;
  if (retiredIndexUids.contains(uid)) return true;
  if (retiredPropertyUids.contains(uid)) return true;
  if (retiredRelationUids.contains(uid)) return true;
  return false;
}