getVariableValue method
Retrieve the value assigned to the given variable in the current scope (DartBlockEnvironment), based on its unique name.
Implementation
DartBlockValue? getVariableValue(String name) {
final currentEnvironment = _getCurrentEnvironment();
return currentEnvironment.get(name);
}