Text class

Constructors

Text(String text)

Properties

characters List<int>
Unicode characters.
no setter
hashCode int
The hash code for this object.
no setterinherited
length int
Number of Unicode characters.
no setter
lineCount int
Number of lines.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

characterAt(int position) int
Returns an Unicode character at the specified position.
line(int index) Line
Returns the lines at specified index.
lineAt(int position) Line?
Returns the line at specified character position.
lines() Iterable<Line>
Returns the collection of text lines.
locationAt(int position) Location
Returns the location at specified character position.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
position(Location location) int
Returns the character position at specified location.
toString() String
A string representation of this object.
inherited

Operators

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