DartSourceCodeLocation constructor

DartSourceCodeLocation({
  1. String? fileName,
  2. int? line,
})

Renders a source code location as "file:line".

Use to show where a log call originated in the codebase. Returns EmptySpan if fileName is null.

Example output: user_service.dart:42

Implementation

DartSourceCodeLocation({this.fileName, this.line});