rangeAt method

Range rangeAt(
  1. int start,
  2. int end
)

Builds a Range from a [start, end) offset pair.

Implementation

Range rangeAt(int start, int end) =>
    Range(positionAt(start), positionAt(end));