computeAndValidate method
- bool throwException = false
Compute and validate this tag.
If throwException
is true
, it throws an InvalidException if the tag is not valid.
Implementation
bool computeAndValidate([bool throwException = false]) {
compute();
if (throwException) {
validateOrThrow((errors) => InvalidException("This $tagName is not valid:", errors));
}
return this.isValid();
}