pathToElement method

Uri pathToElement(
  1. Element element
)

Returns a Uri from the current library to the target element.

This is a typed convenience function for using pathToUrl, and the same API restrictions hold around supported schemes and relative paths.

Implementation

Uri pathToElement(Element element) => pathToUrl(element.source!.uri);