Importer class Null safety
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 extends AsyncImporter to guarantee that canonicalize and load are
synchronous. It's usable with both the synchronous and asynchronous
compile() functions, and as such should be extended in preference to
AsyncImporter if possible.
Subclasses should extend Importer, not implement it.
Uri url) → Uri?
urlis recognized by this importer, returns its canonical format. [...]override
Uri url, Uri canonicalUrl) → bool
Without accessing the filesystem, returns whether or not passing
urlto canonicalize could possibly return
Uri url) → ImporterResult?
Loads the Sass text for the given
url, or returns
nullif this importer can't find the stylesheet it refers to. [...]override
Uri url) → DateTime
Returns the time that the Sass file at
urlwas last modified. [...]override
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
A string representation of this object. [...]