isDefinedAt method

bool isDefinedAt(
  1. int idx
)

Returns true if this collection has an element at the given idx.

Implementation

bool isDefinedAt(int idx) => 0 <= idx && idx < size;