startWith method
由另外一个List开头 >>>
Implementation
bool startWith(List<T> other, {bool Function(T, T)? compare}) {
if (other.length > this.length) {
return false;
}
for (int i = 0; i < other.length; ++i) {
var n = other[i];
var m = this[i];
if (!compare!(n, m)) {
return false;
}
}
return true;
}