Line class

Describes a line in the document.

Created on-demand when lines are queried via Text.lineAt or Text.line.

Annotations

Constructors

Line(int from, int to, int number, String text)
Creates a new line descriptor.
const

Properties

from int
The position of the start of the line.
final
hashCode int
The hash code for this object.
no setteroverride
length int
The length of the line (not including any line break after it).
no setter
number int
This line's line number (1-based).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The line's content.
final
to int
The position at the end of the line (before the line break, or at the end of document for the last line).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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