location property

String? get location

Gets the location information from the stack trace.

Returns a formatted string like "main.dart:42:10" or null if unavailable.

Implementation

String? get location {
  _location ??= StackTraceParser.extractLocation(stackTrace: stackTrace);
  return _location;
}