listEquality method Null safety

bool listEquality(
  1. Uint8List f,
  2. Uint8List o
)

Test if two lists are equal

Implementation

bool listEquality(Uint8List f, Uint8List o) {
  if (f.length == o.length) {
    for (var i = 0; i < f.length; i++) {
      if (f[i] != o[i]) {
        return false;
      }
    }
    return true;
  }
  return false;
}