contains method

bool contains(
  1. int index
)

Implementation

bool contains(int index) => index >= start && index < end;