evaluate method

  1. @override
bool evaluate(
  1. Object? context
)
override

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");
  }
}