mapToHashCode function

int mapToHashCode(
  1. Map input
)

Implementation

int mapToHashCode(Map input) {
  int result = 0;
  for (final entry in input.entries) {
    result += entry.key.hashCode;
    final value = entry.value;
    if (value is List) {
      result += listToHashCode(value);
    } else if (value is Map) {
      result += mapToHashCode(value);
    } else {
      result += value.hashCode;
    }
  }
  return result;
}