A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pub.dartlang.org/documentation/sass/latest/sass/Importer-class.html below:

Importer class - sass library

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.

Methods
canonicalize(Uri url) Uri?
If url is recognized by this importer, returns its canonical format.

override

couldCanonicalize(Uri url, Uri canonicalUrl) bool
Without accessing the filesystem, returns whether or not passing url to canonicalize could possibly return canonicalUrl.

override

isNonCanonicalScheme(String scheme) bool
Returns whether the given URL scheme (without :) should be considered "non-canonical" for this importer.

override

load(Uri url) ImporterResult?
Loads the Sass text for the given url, or returns null if this importer can't find the stylesheet it refers to.

override

modificationTime(Uri url) DateTime
Returns the time that the Sass file at url was last modified.

override

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.

inherited

toString() String
A string representation of this object.

inherited

Static Properties
noOp Importer
An importer that never imports any stylesheets.

final


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4