checkFunction static method

XPathFunction checkFunction(
  1. String name,
  2. XPathFunction? value
)

Implementation

static XPathFunction checkFunction(String name, XPathFunction? value) {
  if (value != null) return value;
  throw XPathEvaluationException('Undeclared function "$name"');
}