ResourceUriResolver class

A UriResolver for Resources.

Constructors

ResourceUriResolver(ResourceProvider _provider)

Properties

hashCode int
The hash code for this object.
no setterinherited
provider ResourceProvider
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pathToUri(String path) Uri
Return the absolute URI that should be used to reference the file at the absolute path, or null if this resolver cannot reference this file. The file at that path is not required to exist.
resolveAbsolute(Uri uri) → 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.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

FILE_SCHEME String
The name of the file scheme.
final

Static Methods

isFileUri(Uri uri) bool
Return true if the given uri is a file URI.