getFunction method

JsonWidgetFunction? getFunction(
  1. String? functionName
)

Returns the function with the given functionName. If a function with named functionName cannot be found, this will return null.

Implementation

JsonWidgetFunction? getFunction(String? functionName) {
  JsonWidgetFunction? function;
  if (functionName != null) {
    function = _functions[functionName];
    function ??= _parent?.getFunction(functionName);
  }
  return function;
}