PackageMapUriResolver class

A UriResolver implementation for the package: scheme that uses a map of package names to their directories.

Constructors

PackageMapUriResolver(ResourceProvider resourceProvider, Map<String, List<Folder>> packageMap)
Create a new PackageMapUriResolver. [...]

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
packageMap Map<String, List<Folder>>
A table mapping package names to the path of the directories containing the package.
final
resourceProvider ResourceProvider
The ResourceProvider for this resolver.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

clearCache() → void
Clear any cached URI resolution information.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
resolveAbsolute(Uri uri, [Uri actualUri]) → Source
Resolve the given absolute URI. Return a Source representing the file to which it was resolved, whether or not the resulting source exists, or null if it could not be resolved because the URI is invalid. [...]
restoreAbsolute(Source source) Uri
Return an absolute URI that represents the given source, or null if a valid URI cannot be computed. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

isPackageUri(Uri uri) bool
Returns true if uri is a package URI.

Constants

PACKAGE_SCHEME → const String
The name of the package scheme.
"package"