ScriptRequest class

Sends a generic HTTP GET request using a script tag. By constructing URL in a specific way, it can be used for loading JavaScript resources or JSONP requests. It can notify about errors, but only in certain environments. Please take care of monitoring the state of the request yourself.

Annotations
  • @JS()

Constructors

ScriptRequest(String src)
factory

Properties

errorScript ↔ dynamic
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
script ↔ dynamic
getter/setter pair
src String
getter/setter pair

Methods

cleanup() → dynamic
Cleans up the DOM remains of the script request.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(ScriptReceiver receiver) → dynamic
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited