deepHashCode function

int deepHashCode(
  1. Object? o
)

Calculate a hashcode over o, iterating deeply over sub elements if is a List or Map.

Implementation

int deepHashCode(Object? o) {
  if (o == null) return 0;

  if (o is List) {
    return deepHashCodeList(o);
  } else if (o is Map) {
    return deepHashCodeMap(o);
  } else {
    return o.hashCode;
  }
}