ImportCache class Null safety Dependencies

An in-memory cache of parsed stylesheets that have been imported by Sass.

Annotations

Constructors

ImportCache({Iterable<Importer>? importers, Iterable<String>? loadPaths, PackageConfig? packageConfig, Logger? logger})
Creates an import cache that resolves imports using importers. [...]
ImportCache.none({Logger? logger})
Creates an import cache without any globally-available importers.

Properties

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

Methods

canonicalize(Uri url, {Importer? baseImporter, Uri? baseUrl, bool forImport = false}) Tuple3<Importer, Uri, Uri>?
Canonicalizes url according to one of this cache's importers. [...]
humanize(Uri canonicalUrl) Uri
Return a human-friendly URL for canonicalUrl to use in a stack trace. [...]
import(Uri url, {Importer? baseImporter, Uri? baseUrl, bool forImport = false}) Tuple2<Importer, Stylesheet>?
Tries to import url using one of this cache's importers. [...]
importCanonical(Importer importer, Uri canonicalUrl, {Uri? originalUrl, bool quiet = false}) Stylesheet?
Tries to load the canonicalized canonicalUrl using importer. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
sourceMapUrl(Uri canonicalUrl) Uri
Returns the URL to use in the source map to refer to canonicalUrl. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

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