Whether position is inside the range.
position
bool contains(Duration position) => position >= start && position <= end;