DefinitionLocation class

Represents a location that can be navigated to.

For locations within the current document, only pos is needed. For locations in other files, uri specifies the target file.

Constructors

DefinitionLocation({String? uri, required int pos, int? end, int? line, int? column})
const
DefinitionLocation.external({required String uri, int? pos, int? line, int? column})
Create a location in an external file.
factory
DefinitionLocation.local(int pos, {int? end})
Create a location in the current document.
factory

Properties

column int?
Optional column number (0-indexed) for external files.
final
end int?
Optional end position for highlighting the definition range.
final
hashCode int
The hash code for this object.
no setterinherited
isLocal bool
Whether this location is in the current document.
no setter
line int?
Optional line number (0-indexed) for external files.
final
pos int
The document position of the definition.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri String?
The URI of the file containing the definition.
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