Location class

A location (character range) within a file.

Implemented types

Constructors

Location(String file, int offset, int length, int startLine, int startColumn, {int? endLine, int? endColumn})

Properties

endColumn int?
The one-based index of the column containing the character immediately following the range.
final
endLine int?
The one-based index of the line containing the character immediately following the range.
final
file String
The file containing the range.
final
hashCode int
The hash code for this object.
no setteroverride
length int
The length of the range.
final
offset int
The offset of the range.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startColumn int
The one-based index of the column containing the first character of the range.
final
startLine int
The one-based index of the line containing the first character of the range.
final

Methods

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

Operators

operator ==(Object o) bool
The equality operator.
override

Static Methods

parse(Map m) Location