range property

BufferRange? get range

Returns the range of the underline. May be null if the anchors that define the underline are not attached to the terminal.

Implementation

BufferRange? get range {
  if (!p1.attached || !p2.attached) {
    return null;
  }
  return BufferRangeLine(p1.offset, p2.offset);
}