UrlFileManager class
URL loader
- Inheritance
- Object
- AbstractFileManager
- UrlFileManager
Constructors
- UrlFileManager(Environment environment)
Properties
- environment ↔ Environment
-
read / write, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isUrlRe ↔ RegExp
-
read / write
- 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
-
existSync(
String filename, String currentDirectory, Contexts options, Environment environment) → FileLoaded -
Check if
filename
exists in the include pathsinherited -
extractUrlParts(
String url, [String baseUrl]) → UrlParts -
inherited
-
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 url
override
-
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
-
supports(
String filename, String currentDirectory, Contexts options, Environment environment) → bool -
True is can load the file
override
-
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 -
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