listEquals<T> function

bool listEquals<T>(
  1. List<T> a,
  2. List<T> b
)

Implementation

bool listEquals<T>(List<T> a, List<T> b) {
  if (identical(a, b)) return true;
  for (int index = 0; index < a.length; index += 1) {
    if (a[index] != b[index]) return false;
  }
  return true;
}