containsIndex method

bool containsIndex(
  1. int index
)

Returns true if index is within the range of elements in List.

indexListの要素の範囲内にある場合trueを返します。

Implementation

bool containsIndex(int index) {
  return index >= 0 && index < length;
}