AsyncImportCache class Null safety Dependencies

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

Annotations

Constructors

AsyncImportCache({Iterable<AsyncImporter>? importers, Iterable<String>? loadPaths, PackageConfig? packageConfig, Logger? logger})
Creates an import cache that resolves imports using importers. [...]
AsyncImportCache.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, {AsyncImporter? baseImporter, Uri? baseUrl, bool forImport = false}) Future<Tuple3<AsyncImporter, 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, {AsyncImporter? baseImporter, Uri? baseUrl, bool forImport = false}) Future<Tuple2<AsyncImporter, Stylesheet>?>
Tries to import url using one of this cache's importers. [...]
importCanonical(AsyncImporter importer, Uri canonicalUrl, {Uri? originalUrl, bool quiet = false}) Future<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