BufferRangeBlock class

A rectangular range with corners begin and end, like a block (column) selection.

Inheritance

Constructors

BufferRangeBlock(CellOffset begin, CellOffset end)
Creates a block with corners begin and end.
BufferRangeBlock.collapsed(CellOffset begin)
Creates an empty block at begin.

Properties

begin → CellOffset
Where the range starts; may come after end (see isNormalized).
finalinherited
end → CellOffset
Where the range ends.
finalinherited
hashCode → int
The hash code for this object.
no setteroverride
isCollapsed → bool
Whether begin and end are the same position.
no setterinherited
isNormalized → bool
Whether begin does not come after end.
no setteroverride
normalized → BufferRangeBlock
This range with begin and end swapped if needed, so that begin comes first.
no setteroverride
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.
override
extend(CellOffset position) → BufferRangeBlock
Returns the smallest range that contains both this range and the given position.
override
merge(BufferRange range) → BufferRangeBlock
Returns the smallest range that contains both this range and the given range.
override
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.
override
toString() → String
A string representation of this object.
override

Operators

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