location property Null safety

String location

A human-friendly description of the code location.

Implementation

String get location {
  if (line == null) return library;
  if (column == null) return '$library $line';
  return '$library $line:$column';
}