TextChunk class

A slice of a document.

Constructors

TextChunk(int index, String text, int start, int end)
Creates a chunk.
const

Properties

end → int
End offset (exclusive) in the source.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
Position of this chunk in the document.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
start → int
Start offset in the source, in UTF-16 code units.
final
text → String
The chunk text (an exact substring of the source, trimmed).
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.
inherited