get method

DartBlockValue? get(
  1. String variableName
)

Get the current value associated with the given variable name.

Implementation

DartBlockValue? get(String variableName) {
  var containingEnvironment = getContainingEnvironment(variableName);
  if (containingEnvironment != null) {
    return containingEnvironment._memory[variableName];
  } else {
    throw VariableNotDeclaredException(variableName);
  }
}