AsyncImporter class

An interface for importers that resolves URLs in @imports to the contents of Sass files.

Importers should override toString to provide a human-readable description of the importer. For example, the default filesystem importer returns its load path.

This class should only be extended by importers that need to do asynchronous work. It's only compatible with the asynchronous compile() methods. If an importer can work synchronously, it should extend Importer instead.

Subclasses should extend AsyncImporter, not implement it.





hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited


canonicalize(Uri url) → FutureOr<Uri>
If url is recognized by this importer, returns its canonical format. [...]
couldCanonicalize(Uri url, Uri canonicalUrl) → FutureOr<bool>
Without accessing the filesystem, returns whether or not passing url to canonicalize could possibly return canonicalUrl. [...]
load(Uri url) → FutureOr<ImporterResult>
Loads the Sass text for the given url, or returns null if this importer can't find the stylesheet it refers to. [...]
modificationTime(Uri url) → FutureOr<DateTime>
Returns the time that the Sass file at url was last modified. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() → String
Returns a string representation of this object.


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