UploadData class
Contains data uploaded in a URL request.
class UploadData extends ChromeObject {
UploadData({var bytes, String file}) {
if (bytes != null) this.bytes = bytes;
if (file != null) this.file = file;
}
UploadData.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
/**
* An ArrayBuffer with a copy of the data.
*/
dynamic get bytes => jsProxy['bytes'];
set bytes(var value) => jsProxy['bytes'] = jsify(value);
/**
* A string with the file's path and name.
*/
String get file => jsProxy['file'];
set file(String value) => jsProxy['file'] = value;
}
Extends
ChromeObject > UploadData
Constructors
new UploadData({bytes, String file}) #
Create a new instance of a ChromeObject, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
UploadData({var bytes, String file}) {
if (bytes != null) this.bytes = bytes;
if (file != null) this.file = file;
}
new UploadData.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
UploadData.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
var bytes #
An ArrayBuffer with a copy of the data.
dynamic get bytes => jsProxy['bytes'];
set bytes(var value) => jsProxy['bytes'] = jsify(value);
String file #
A string with the file's path and name.
String get file => jsProxy['file'];
set file(String value) => jsProxy['file'] = value;
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();