FileFileManager class

File loader

Inheritance

Constructors

FileFileManager(Environment environment, PackageResolverProvider _packageResolverProvider)

Properties

contents ↔ Map<String, String>
content cache for files yet loaded
read / write
filenamesTried ↔ List<String>
full path list of filenames used to find the file
read / write
environment Environment
read / write, 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

createListPaths(String filename, String currentDirectory, Contexts options) → List<String>
Build the directory list where to search the file
existSync(String filename, String currentDirectory, Contexts options, Environment environment) FileLoaded
Check if filename exists in the include paths
override
findFile(String filename, List<String> paths, [ int index = 0 ]) → Future<String>
Search asynchrously the filename in the paths directorys [...]
findFileSync(String filename, List<String> paths) → String
Search the filename in the paths directories [...]
getLoadedFile(String fullPath) → Future<FileLoaded>
Loads file by its fullPath
loadFile(String filename, String currentDirectory, Contexts options, Environment environment) → Future<FileLoaded>
Load Async the file
override
loadFileSync(String filename, String currentDirectory, Contexts options, Environment environment) FileLoaded
Load sync the file [...]
override
normalizeFilePath(String filename) → Future<String>
Normalizes file path (replaces package/ prefix to the absolute path)
override
supports(String filename, String currentDirectory, Contexts options, Environment environment) → bool
override
supportsSync(String filename, String currentDirectory, Contexts options, Environment environment) → bool
override
alwaysMakePathsAbsolute() → bool
Whether the rootpath should be converted to be absolute. Only for browser compatibility
inherited
extractUrlParts(String url, [ String baseUrl ]) UrlParts
inherited
getPath(String filename) → String
Given the full path to a file filename, return the path component
inherited
isPathAbsolute(String path) → bool
Returns whether a path is absolute
inherited
join(String basePath, String laterPath) → String
Joins together 2 paths
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
pathDiff(String url, String baseUrl) → String
Returns the difference between 2 paths to create a relative path [...]
inherited
toString() → String
Returns a string representation of this object.
inherited
tryAppendExtension(String path, String ext) → String
Append a ext extension to path if appropriate.
inherited
tryAppendLessExtension(String path) → String
Append a .less extension to path if appropriate. Only called if less thinks one could be added.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Constants

PACKAGES_PREFIX → const String
packages prefix: @import "packages/less_dart/test/import-charset-test"; @import "package://less_dart/test/import-charset-test";
'package'
PACKAGES_TEST → const String
packages test: @import "package_test://less_dart/less/import/import-charset-test";
'test'