evaluate method
Implementation
@override
bool evaluate(Object? context) {
switch (cmp) {
case DOMTemplateCmp.eq:
return matchesEq(context);
case DOMTemplateCmp.notEq:
return !matchesEq(context);
default:
throw StateError("Can't handle: $cmp");
}
}