DocumentRange class

A span within a Document that begins at start and ends at end.

The start position must come before the end position in the document.

Constructors

DocumentRange({required DocumentPosition start, required DocumentPosition end})
Creates a document range from its start and end positions.
const

Properties

end DocumentPosition
The end position of the range represented by its position within the document.
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 DocumentPosition
The start position of the range represented by its position within the document.
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