importLibraryElement abstract method

ImportLibraryElementResult importLibraryElement(
  1. Uri uri
)

Ensures that the library with the given uri is imported.

If there is already an import for the requested library, returns the import prefix of the existing import directive.

If there is no existing import, a new import is added.

Implementation

ImportLibraryElementResult importLibraryElement(Uri uri);