uriElement property

  1. @Deprecated('Use element2.uri and check for DirectiveUriWithLibrary instead')
  2. @override
LibraryElement? uriElement
override

Return the element associated with the uri of this directive, or null if the AST structure has not been resolved or if the URI could not be resolved.

Examples of the latter case include a directive that contains an invalid URL or a URL that does not exist.

Implementation

@Deprecated('Use element2.uri and check for DirectiveUriWithLibrary instead')
@override
LibraryElement? get uriElement;