toolString property Null safety

String toolString
override

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

This prints 1-based lines and columns.

Implementation

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