StyledRange class final

A run of text with one style, as UTF-16 offsets into a whole document.

Ranges never span a line break and never overlap, and they come in document order. Line breaks, including the \r of a CRLF break, are not covered by any range.

Constructors

StyledRange(int start, int end, TokenStyle style)
A range from start to end painted with style.
const

Properties

end → int
Exclusive end offset.
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
start → int
Inclusive start offset.
final
style → TokenStyle
How to paint the range.
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