DependencyLoader class
Handles loading dependency files. Dependency loaders don't remember whether a resource has been loaded or not. It is caller's responsibility to make sure the resource is not loaded twice. This is because it's impossible to detect resource loading status without knowing its content. Options:
- cdn_http - url to HTTP CND
- cdn_https - url to HTTPS CDN
- version - version of pusher-js
- suffix - suffix appended to all names of dependency files
- Annotations
-
- @JS()
Constructors
- DependencyLoader(dynamic options)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- loading ↔ dynamic
-
getter/setter pair
- options ↔ dynamic
-
getter/setter pair
- receivers ↔ ScriptReceiverFactory
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getPath(
String name, dynamic options) → String - Returns a full path to a dependency file.
-
getRoot(
dynamic options) → String - Returns a root URL for pusher-js CDN.
-
load(
String name, dynamic options, Function callback) → dynamic - Loads the dependency from CDN.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited