BufferRangeLine class
A range that runs in line order from begin to end, like a text selection: the rest of the first line, every line between, and the start of the last line.
- Inheritance
-
- Object
- BufferRange
- BufferRangeLine
Constructors
- BufferRangeLine(CellOffset begin, CellOffset end)
-
Creates a range from
begintoend. - BufferRangeLine.collapsed(CellOffset begin)
-
Creates an empty range 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 setterinherited
- normalized → BufferRangeLine
-
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 given
positionis within this range.override -
extend(
CellOffset position) → BufferRangeLine -
Returns the smallest range that contains both this range and the given
position.override -
merge(
BufferRange range) → BufferRangeLine -
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