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
methods. If an importer can work synchronously, it should extend Importer
Subclasses should extend AsyncImporter, not implement it.
Uri url) → FutureOr< Uri>
urlis recognized by this importer, returns its canonical format. [...]
Uri url, Uri canonicalUrl) → FutureOr< bool>
Without accessing the filesystem, returns whether or not passing
urlto canonicalize could possibly return
Uri url) → FutureOr< ImporterResult>
Loads the Sass text for the given
url, or returns
nullif this importer can't find the stylesheet it refers to. [...]
Uri url) → FutureOr< DateTime>
Returns the time that the Sass file at
urlwas last modified. [...]
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
Returns a string representation of this object.