operator [] method

double operator [](
  1. String variableName
)

Get variable value

Implementation

operator [](String variableName) {
  if (_pExpression == 0) throw ClearedExpressionException();
  final pVariableName = _variableNames[variableName];
  if (pVariableName != null) {
    return FlutterExprtkPlatform.instance.getVar(pVariableName, _pExpression);
  } else {
    throw UninitializedVariableException();
  }
}