checkVariable static method

XPathValue checkVariable(
  1. String name,
  2. XPathValue? value
)

Implementation

static XPathValue checkVariable(String name, XPathValue? value) {
  if (value != null) return value;
  throw XPathEvaluationException('Undeclared variable "$name"');
}