evaluateMap method

void evaluateMap(
  1. Map map,
  2. Map? otherMap
)

Updates the content of a Map by evaluating it's values using otherMap as context.

Implementation

void evaluateMap(Map map, Map? otherMap) {
  if (otherMap == null) {
    return;
  }
  for (var key in map.keys) {
    map[key] = evaluateValue(map[key], otherMap);
  }
}