isValid method

bool isValid()

Returs entity is valid or not

Implementation

bool isValid() {
  return allErrors.length == 0;
}