static int arrayHashCode(List<int>? a) { if (a == null) { return 0; } int result = 1; for (int element in a) { result = 31 * result + element; } return result; }