BufferRange class abstract

A range of cells between begin and end: a stream of lines (BufferRangeLine) or a rectangle (BufferRangeBlock).

Implementers

Constructors

BufferRange(CellOffset begin, CellOffset end)
Creates a range from begin to end.
const
BufferRange.collapsed(CellOffset begin)
Creates an empty range at begin.

Properties

begin → CellOffset
Where the range starts; may come after end (see isNormalized).
final
end → CellOffset
Where the range ends.
final
hashCode → int
The hash code for this object.
no setteroverride
isCollapsed → bool
Whether begin and end are the same position.
no setter
isNormalized → bool
Whether begin does not come after end.
no setter
normalized → BufferRange
This range with begin and end swapped if needed, so that begin comes first.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

contains(CellOffset position) → bool
Returns true if the givenposition is within this range.
extend(CellOffset position) → BufferRange
Returns the smallest range that contains both this range and the given position.
merge(BufferRange range) → BufferRange
Returns the smallest range that contains both this range and the given range.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSegments() → Iterable<BufferSegment>
Convert this range to segments of single lines.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override