BufferSegment constructor

const BufferSegment(
  1. BufferRange range,
  2. int line,
  3. int? start,
  4. int? end,
)

Creates the segment of range on line, from start to end.

Implementation

const BufferSegment(this.range, this.line, this.start, this.end)
  : assert((start != null && end != null) ? start <= end : true);