pathToAsset method
Returns a Uri from the current library to the target asset
.
This is a typed convenience function for using pathToUrl, and the same API restrictions hold around supported schemes and relative paths.
Implementation
Uri pathToAsset(AssetId asset) => pathToUrl(asset.uri);