replaceVariables method
Replaces the entire variables map with a new one.
Parameters:
newVariables- A map of variables to replace the current ones
Implementation
void replaceVariables(Map<String, dynamic> newVariables) {
variables = newVariables;
}