contains method

bool contains(
  1. int offset
)

Implementation

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