CodeLine class

Constructors

CodeLine(String text, [List<CodeLine> chunks = const []])
const

Properties

characterLength int
no setter
charCount int
no setter
chunkParent bool
no setter
chunks List<CodeLine>
final
hashCode int
The hash code for this object.
no setteroverride
length int
no setter
lineCount int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
final

Methods

asString(int start, TextLineBreak lineBreak) String
codeUnitAt(int index) int
copyWith({String? text, List<CodeLine>? chunks}) CodeLine
flat() List<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
skipCharacter(int count) String
skipLastCharacter(int count) String
substring(int start, [int? end]) String
takeCharacter(int count) String
takeCharacterAt(int index) String
takeCharacterAtLastIndex(int index) String
takeLastCharacter(int count) String
toString() String
A string representation of this object.
override

Operators

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

Constants

empty → const CodeLine