inRange method

bool inRange(
  1. int index
)

Implementation

bool inRange(int index) => index >= offset && index < offset + length;