equals method

bool equals(
  1. E entity
)

Two entities are equal if their oids are equal.

Implementation

bool equals(E entity) {
  if (_oid.equals(entity.oid)) {
    return true;
  }
  return false;
}