FileFileManager class
File loader
- Inheritance
- Object
- AbstractFileManager
- FileFileManager
Constructors
- FileFileManager(Environment environment, PackageResolverProvider _packageResolverProvider)
Properties
-
contents
↔ Map<
String, String> -
content cache for files yet loaded
read / write
- environment ↔ Environment
-
read / write, inherited
-
filenamesTried
↔ List<
String> -
full path list of filenames used to find the file
read / write
- 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
-
alwaysMakePathsAbsolute(
) → bool -
Whether the rootpath should be converted to be absolute.
Only for browser compatibility
inherited
-
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 pathsoverride -
extractUrlParts(
String url, [String baseUrl]) → UrlParts -
inherited
-
findFile(
String filename, List< String> paths, [int index = 0]) → Future<String> -
Search asynchrously the
filename
in thepaths
directorys [...] -
findFileSync(
String filename, List< String> paths) → String -
Search the
filename
in thepaths
directories [...] -
getLoadedFile(
String fullPath) → Future< FileLoaded> -
Loads file by its
fullPath
-
getPath(
String filename) → String -
Given the full path to a file
filename
, return the path componentinherited -
isPathAbsolute(
String path) → bool -
Returns whether a path is absolute
inherited
-
join(
String basePath, String laterPath) → String -
Joins together 2 paths
inherited
-
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
-
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
-
supports(
String filename, String currentDirectory, Contexts options, Environment environment) → bool -
override
-
supportsSync(
String filename, String currentDirectory, Contexts options, Environment environment) → bool -
override
-
toString(
) → String -
Returns a string representation of this object.
inherited
-
tryAppendExtension(
String path, String ext) → String -
Append a
ext
extension topath
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 ==(
Object 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'