isIn method

bool isIn(
  1. int index
)

Implementation

bool isIn(int index) => from <= index && index < to;