resolve abstract method
Resolves a package:
URI to a non-package URI
The packageUri
must be a valid package URI. That means:
- A URI with
package
as scheme, - with no authority part (
package://...
), - with a path starting with a valid package name followed by a slash, and
- with no query or fragment part.
Throws an ArgumentError (which also implements PackageConfigError) if the package URI is not valid.
Returns null
if the package name of packageUri
is not available
in this package configuration.
Returns the remaining path of the package URI resolved relative to the
Package.packageUriRoot of the corresponding package.
Implementation
Uri? resolve(Uri packageUri);