getUsedVariables method

  1. @override
Set<String> getUsedVariables()
override

Get mentioned variables that are required to evaluate the expression

Searches the math tree for any MathVariable instances and returns a set of their names.

Implementation

@override
Set<String> getUsedVariables() {
  return {...left.getUsedVariables(), ...right.getUsedVariables()};
}