UrlFileManager class

URL loader

Inheritance

Constructors

UrlFileManager(Environment environment)

Properties

isUrlRe ↔ RegExp
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

loadFile(String filename, String currentDirectory, Contexts options, Environment environment) → Future<FileLoaded>
Load async the url
override
supports(String filename, String currentDirectory, Contexts options, Environment environment) → bool
True is can load the file
override
alwaysMakePathsAbsolute() → bool
Whether the rootpath should be converted to be absolute. Only for browser compatibility
inherited
existSync(String filename, String currentDirectory, Contexts options, Environment environment) FileLoaded
Check if filename exists in the include paths
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
loadFileSync(String filename, String currentDirectory, Contexts options, Environment environment) FileLoaded
Loads a file synchronously. Expects an immediate return with an object containing { error: - error object if an error occurs filename: - full resolved path to file contents: - the contents of the file, as a string or codeunits: - the contents of the file, asBytes }
inherited
normalizeFilePath(String filename) → Future<String>
Normalizes file path. Basically does nothing, to be overridden in child managers
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
supportsSync(String filename, String currentDirectory, Contexts options, Environment environment) → bool
Returns whether this file manager supports this file for syncronous file retrieval If true is returned, loadFileSync will then be called with the file.
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