ResourceUriResolver class Null safety

A UriResolver for Resources.

Constructors

ResourceUriResolver(ResourceProvider _provider)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
provider ResourceProvider
read-only
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) → 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 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.