Creates a text range.
The start and end arguments must not be null. Both the start and end must either be greater than or equal to zero or both exactly -1.
Instead of creating an empty text range, consider using the empty constant.
Source
const TextRange({ this.start, this.end });