getUsedFreeformFunctions method

  1. @override
Set<MathDefinitionFunctionFreeform> getUsedFreeformFunctions()
override

Get mentioned custom defined functions that are required to evaluate the expression

Searches the math tree for any MathFunctionFreeform instances and returns a set of their definitions.

Implementation

@override
Set<MathDefinitionFunctionFreeform> getUsedFreeformFunctions() {
  return {
    definition,
    for (var l in arguments.map<Set<MathDefinitionFunctionFreeform>>(
        (e) => e.getUsedFreeformFunctions()))
      ...l
  };
}