referencedSource property

Source? get referencedSource

If referencedUri is a DirectiveUriWithSource, returns the Source from it.

Implementation

Source? get referencedSource {
  final uri = referencedUri;
  if (uri is DirectiveUriWithSource) {
    return uri.source;
  }
  return null;
}