referencedLibrary property
The library element referenced by this directive.
This provides access to the elements defined in the target library.
Implementation
@override
LibraryElement get referencedLibrary {
if (_referencedLibrary != null) {
return _referencedLibrary!;
}
_referencedLibrary = library.resolver.libraryForDirective(this);
return _referencedLibrary!;
}