toolString property

String get toolString

Returns a representation of this location in the source:line:column format used by text editors.

This prints 1-based lines and columns.

Implementation

String get toolString {
  final source = sourceUrl ?? 'unknown source';
  return '$source:${line + 1}:${column + 1}';
}