operator <= method
Returns true
if the inequality
this(i) <= other(i)
holds for each index i
.
Implementation
bool operator <=(List<T> other) {
mustHaveSameLength(other, operatorSymbol: '<=');
for (var i = 0; i < length; i++) {
if (this[i].compareTo(other[i]) > 0) return false;
}
return true;
}