CodeLines class
Constructors
-
CodeLines(List<
CodeLineSegment> segments) -
const
- CodeLines.empty()
-
factory
- CodeLines.from(CodeLines codeLines)
-
factory
- CodeLines.fromText(String text)
-
factory
-
CodeLines.of(Iterable<
CodeLine> elements) -
factory
Properties
- first → CodeLine
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- isEmpty → bool
-
no setter
- isNotEmpty → bool
-
no setter
- last → CodeLine
-
no setter
- length → int
-
no setter
- lineCount → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
segments
→ List<
CodeLineSegment> -
final
Methods
-
add(
CodeLine value) → void -
addAll(
Iterable< CodeLine> iterable) → void -
addFrom(
CodeLines codeLines, int start, [int? end]) → void -
asString(
TextLineBreak lineBreak, [bool expandChunks = true]) → String -
clear(
) → void -
equals(
CodeLines? codeLines) → bool -
index2lineIndex(
int index) → int -
lineIndex2Index(
int lineIndex) → CodeLineIndex -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sublines(
int start, [int? end]) → CodeLines -
toList(
) → List< CodeLine> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator [](
int index) → CodeLine -
operator []=(
int index, CodeLine value) → void