containsUid method

bool containsUid(
  1. int searched
)

Implementation

bool containsUid(int searched) {
  if (id.uid == searched) return true;
  if (lastPropertyId.uid == searched) return true;
  if (properties.indexWhere((p) => p.id.uid == searched) != -1) {
    return true;
  }
  if (relations.indexWhere((p) => p.id.uid == searched) != -1) {
    return true;
  }
  return false;
}