deepHashCodeMap function

int deepHashCodeMap(
  1. Map? map
)

Computes a hash code inspecting deeply map.

Implementation

int deepHashCodeMap(Map? map) {
  if (map == null) return 0;

  var h = 1;

  for (var e in map.entries) {
    h ^= deepHashCode(e.key) ^ deepHashCode(e.value);
  }

  return h;
}