merge method

void merge(
  1. Map<String, dynamic> newData
)

Merges new data into the current scope.

This method takes a map of new data and merges it into the current scope. If a variable with the same name already exists in the current scope, its value will be overwritten with the new value.

newData A map containing the new data to be merged.

Implementation

void merge(Map<String, dynamic> newData) {
  newData.forEach((key, value) {
    setVariable(key, value);
  });
}