getFunctionWithName method

ASTFunctionSet? getFunctionWithName(
  1. String name, {
  2. bool caseInsensitive = false,
})

Implementation

ASTFunctionSet? getFunctionWithName(String name,
    {bool caseInsensitive = false}) {
  var f = _functions[name];

  if (f == null && caseInsensitive) {
    for (var entry in _functions.entries) {
      if (equalsIgnoreAsciiCase(entry.key, name)) {
        f = entry.value;
        break;
      }
    }
  }

  return f;
}