eval method

  1. @override
num eval(
  1. Map<String, num> variables
)
override

Evaluates the expression with the provided variables.

Implementation

@override
num eval(Map<String, num> variables) => variables.containsKey(name)
    ? variables[name]!
    : throw ArgumentError.value(name, 'Unknown variable');