deepHashCodeList function

int deepHashCodeList(
  1. List? list
)

Computes a hash code inspecting deeply list.

Implementation

int deepHashCodeList(List? list) {
  if (list == null) return 0;

  var h = 1;

  for (var e in list) {
    h ^= deepHashCode(e);
  }

  return h;
}