getSourceLocation method

  1. @override
Uri? getSourceLocation()
override

Returns the source code location (e.g., file path or URI) where this declaration is defined, or null if not available in the current reflection context.

This is optional and implementation-dependent.

Implementation

@override
Uri? getSourceLocation() => _sourceLocation;