kopia lustrzana https://gitlab.com/mysocialportal/relatica
19 wiersze
342 B
Dart
19 wiersze
342 B
Dart
bool listEqualsWithComparer<T>(List<T> a, List<T> b,
|
|
{required bool Function(T i1, T i2) equals}) {
|
|
if (identical(a, b)) {
|
|
return true;
|
|
}
|
|
|
|
if (a.length != b.length) {
|
|
return false;
|
|
}
|
|
|
|
for (int index = 0; index < a.length; index++) {
|
|
if (!equals(a[index], b[index])) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
return true;
|
|
}
|