DownloadDelta class
Encapsulates a change in a DownloadItem.
class DownloadDelta extends ChromeObject { DownloadDelta({int id, StringDelta url, StringDelta filename, StringDelta danger, StringDelta mime, StringDelta startTime, StringDelta endTime, StringDelta state, BooleanDelta canResume, BooleanDelta paused, StringDelta error, LongDelta totalBytes, LongDelta fileSize, BooleanDelta exists}) { if (id != null) this.id = id; if (url != null) this.url = url; if (filename != null) this.filename = filename; if (danger != null) this.danger = danger; if (mime != null) this.mime = mime; if (startTime != null) this.startTime = startTime; if (endTime != null) this.endTime = endTime; if (state != null) this.state = state; if (canResume != null) this.canResume = canResume; if (paused != null) this.paused = paused; if (error != null) this.error = error; if (totalBytes != null) this.totalBytes = totalBytes; if (fileSize != null) this.fileSize = fileSize; if (exists != null) this.exists = exists; } DownloadDelta.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); int get id => jsProxy['id']; set id(int value) => jsProxy['id'] = value; StringDelta get url => _createStringDelta(jsProxy['url']); set url(StringDelta value) => jsProxy['url'] = jsify(value); StringDelta get filename => _createStringDelta(jsProxy['filename']); set filename(StringDelta value) => jsProxy['filename'] = jsify(value); StringDelta get danger => _createStringDelta(jsProxy['danger']); set danger(StringDelta value) => jsProxy['danger'] = jsify(value); StringDelta get mime => _createStringDelta(jsProxy['mime']); set mime(StringDelta value) => jsProxy['mime'] = jsify(value); StringDelta get startTime => _createStringDelta(jsProxy['startTime']); set startTime(StringDelta value) => jsProxy['startTime'] = jsify(value); StringDelta get endTime => _createStringDelta(jsProxy['endTime']); set endTime(StringDelta value) => jsProxy['endTime'] = jsify(value); StringDelta get state => _createStringDelta(jsProxy['state']); set state(StringDelta value) => jsProxy['state'] = jsify(value); BooleanDelta get canResume => _createBooleanDelta(jsProxy['canResume']); set canResume(BooleanDelta value) => jsProxy['canResume'] = jsify(value); BooleanDelta get paused => _createBooleanDelta(jsProxy['paused']); set paused(BooleanDelta value) => jsProxy['paused'] = jsify(value); StringDelta get error => _createStringDelta(jsProxy['error']); set error(StringDelta value) => jsProxy['error'] = jsify(value); LongDelta get totalBytes => _createLongDelta(jsProxy['totalBytes']); set totalBytes(LongDelta value) => jsProxy['totalBytes'] = jsify(value); LongDelta get fileSize => _createLongDelta(jsProxy['fileSize']); set fileSize(LongDelta value) => jsProxy['fileSize'] = jsify(value); BooleanDelta get exists => _createBooleanDelta(jsProxy['exists']); set exists(BooleanDelta value) => jsProxy['exists'] = jsify(value); }
Extends
ChromeObject > DownloadDelta
Constructors
new DownloadDelta({int id, StringDelta url, StringDelta filename, StringDelta danger, StringDelta mime, StringDelta startTime, StringDelta endTime, StringDelta state, BooleanDelta canResume, BooleanDelta paused, StringDelta error, LongDelta totalBytes, LongDelta fileSize, BooleanDelta exists}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
DownloadDelta({int id, StringDelta url, StringDelta filename, StringDelta danger, StringDelta mime, StringDelta startTime, StringDelta endTime, StringDelta state, BooleanDelta canResume, BooleanDelta paused, StringDelta error, LongDelta totalBytes, LongDelta fileSize, BooleanDelta exists}) { if (id != null) this.id = id; if (url != null) this.url = url; if (filename != null) this.filename = filename; if (danger != null) this.danger = danger; if (mime != null) this.mime = mime; if (startTime != null) this.startTime = startTime; if (endTime != null) this.endTime = endTime; if (state != null) this.state = state; if (canResume != null) this.canResume = canResume; if (paused != null) this.paused = paused; if (error != null) this.error = error; if (totalBytes != null) this.totalBytes = totalBytes; if (fileSize != null) this.fileSize = fileSize; if (exists != null) this.exists = exists; }
new DownloadDelta.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
DownloadDelta.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
BooleanDelta canResume #
BooleanDelta get canResume => _createBooleanDelta(jsProxy['canResume']);
set canResume(BooleanDelta value) => jsProxy['canResume'] = jsify(value);
StringDelta danger #
StringDelta get danger => _createStringDelta(jsProxy['danger']);
set danger(StringDelta value) => jsProxy['danger'] = jsify(value);
StringDelta endTime #
StringDelta get endTime => _createStringDelta(jsProxy['endTime']);
set endTime(StringDelta value) => jsProxy['endTime'] = jsify(value);
StringDelta error #
StringDelta get error => _createStringDelta(jsProxy['error']);
set error(StringDelta value) => jsProxy['error'] = jsify(value);
BooleanDelta exists #
BooleanDelta get exists => _createBooleanDelta(jsProxy['exists']);
set exists(BooleanDelta value) => jsProxy['exists'] = jsify(value);
StringDelta filename #
StringDelta get filename => _createStringDelta(jsProxy['filename']);
set filename(StringDelta value) => jsProxy['filename'] = jsify(value);
LongDelta fileSize #
LongDelta get fileSize => _createLongDelta(jsProxy['fileSize']);
set fileSize(LongDelta value) => jsProxy['fileSize'] = jsify(value);
int id #
int get id => jsProxy['id'];
set id(int value) => jsProxy['id'] = value;
StringDelta mime #
StringDelta get mime => _createStringDelta(jsProxy['mime']);
set mime(StringDelta value) => jsProxy['mime'] = jsify(value);
BooleanDelta paused #
BooleanDelta get paused => _createBooleanDelta(jsProxy['paused']);
set paused(BooleanDelta value) => jsProxy['paused'] = jsify(value);
StringDelta startTime #
StringDelta get startTime => _createStringDelta(jsProxy['startTime']);
set startTime(StringDelta value) => jsProxy['startTime'] = jsify(value);
StringDelta state #
StringDelta get state => _createStringDelta(jsProxy['state']);
set state(StringDelta value) => jsProxy['state'] = jsify(value);
LongDelta totalBytes #
LongDelta get totalBytes => _createLongDelta(jsProxy['totalBytes']);
set totalBytes(LongDelta value) => jsProxy['totalBytes'] = jsify(value);
StringDelta url #
StringDelta get url => _createStringDelta(jsProxy['url']);
set url(StringDelta value) => jsProxy['url'] = jsify(value);
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();