containsIndex method
Returns true
if index
is within the range of elements in List.
Returns false
if itself is Null.
index
がListの要素の範囲内にある場合true
を返します。
自身がNullな場合はfalse
を返します。
Implementation
bool containsIndex(int index) {
if (this == null) {
return false;
}
return index >= 0 && index < length;
}