location property
String
get
location
Get location information as a formatted string
Implementation
String get location {
if (line != null && column != null) {
return 'line $line, column $column';
} else if (line != null) {
return 'line $line';
} else if (offset != null) {
return 'offset $offset';
} else {
return 'unknown location';
}
}