DocumentHighlightState class

The current document highlight state.

Constructors

DocumentHighlightState({int? pos, List<DocumentHighlight> highlights = const [], required RangeSet<Decoration> decorations})
const

Properties

decorations RangeSet<Decoration>
Decoration set for rendering.
final
hashCode int
The hash code for this object.
no setterinherited
highlights List<DocumentHighlight>
The current highlights.
final
pos int?
The position where highlights were computed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Properties

empty DocumentHighlightState
Empty state with no highlights.
no setter