annotate method
Implementation
@override
AnnotationResult annotate(cached, value, DogEngine engine) {
var isValid = validate(cached, value, engine);
if (isValid) return AnnotationResult.empty();
return AnnotationResult(messages: [
AnnotationMessage(
id: messageId, message: "Must be less than %max% (%maxExclusive%).")
]).withVariables({
"max": max.toString(),
"maxExclusive": maxExclusive ? "exclusive" : "inclusive",
});
}