FilesystemImporter class Null safety Importer

An importer that loads files from a load path on the filesystem.

Inheritance
Annotations

Constructors

FilesystemImporter(String loadPath)
Creates an importer that loads files relative to loadPath.

Properties

fromImport bool
Whether the current canonicalize invocation comes from an @import rule. [...]
@nonVirtual, @protected, read-only, inherited
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) 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
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 non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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