sameAs method
- Iterable<
T> ? list
Indicates whether the provided list
is the same as this.
Implementation
bool sameAs(Iterable<T>? list) {
if (list == null || list.length != length) {
return false;
}
for (int i = 0; i < length; i++) {
if (list.elementAt(i) != elementAt(i)) {
return false;
}
}
return true;
}