Dart Documentationchrome.downloadsDownloadQuery

DownloadQuery class

class DownloadQuery extends ChromeObject {
 DownloadQuery({List<String> query, String startedBefore, String startedAfter, String endedBefore, String endedAfter, int totalBytesGreater, int totalBytesLess, String filenameRegex, String urlRegex, int limit, List<String> orderBy, int id, String url, String filename, DangerType danger, String mime, String startTime, String endTime, State state, bool paused, InterruptReason error, int bytesReceived, int totalBytes, int fileSize, bool exists}) {
   if (query != null) this.query = query;
   if (startedBefore != null) this.startedBefore = startedBefore;
   if (startedAfter != null) this.startedAfter = startedAfter;
   if (endedBefore != null) this.endedBefore = endedBefore;
   if (endedAfter != null) this.endedAfter = endedAfter;
   if (totalBytesGreater != null) this.totalBytesGreater = totalBytesGreater;
   if (totalBytesLess != null) this.totalBytesLess = totalBytesLess;
   if (filenameRegex != null) this.filenameRegex = filenameRegex;
   if (urlRegex != null) this.urlRegex = urlRegex;
   if (limit != null) this.limit = limit;
   if (orderBy != null) this.orderBy = orderBy;
   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 (paused != null) this.paused = paused;
   if (error != null) this.error = error;
   if (bytesReceived != null) this.bytesReceived = bytesReceived;
   if (totalBytes != null) this.totalBytes = totalBytes;
   if (fileSize != null) this.fileSize = fileSize;
   if (exists != null) this.exists = exists;
 }
 DownloadQuery.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 List<String> get query => listify(jsProxy['query']);
 set query(List<String> value) => jsProxy['query'] = jsify(value);

 String get startedBefore => jsProxy['startedBefore'];
 set startedBefore(String value) => jsProxy['startedBefore'] = value;

 String get startedAfter => jsProxy['startedAfter'];
 set startedAfter(String value) => jsProxy['startedAfter'] = value;

 String get endedBefore => jsProxy['endedBefore'];
 set endedBefore(String value) => jsProxy['endedBefore'] = value;

 String get endedAfter => jsProxy['endedAfter'];
 set endedAfter(String value) => jsProxy['endedAfter'] = value;

 int get totalBytesGreater => jsProxy['totalBytesGreater'];
 set totalBytesGreater(int value) => jsProxy['totalBytesGreater'] = value;

 int get totalBytesLess => jsProxy['totalBytesLess'];
 set totalBytesLess(int value) => jsProxy['totalBytesLess'] = value;

 String get filenameRegex => jsProxy['filenameRegex'];
 set filenameRegex(String value) => jsProxy['filenameRegex'] = value;

 String get urlRegex => jsProxy['urlRegex'];
 set urlRegex(String value) => jsProxy['urlRegex'] = value;

 int get limit => jsProxy['limit'];
 set limit(int value) => jsProxy['limit'] = value;

 List<String> get orderBy => listify(jsProxy['orderBy']);
 set orderBy(List<String> value) => jsProxy['orderBy'] = jsify(value);

 int get id => jsProxy['id'];
 set id(int value) => jsProxy['id'] = value;

 String get url => jsProxy['url'];
 set url(String value) => jsProxy['url'] = value;

 String get filename => jsProxy['filename'];
 set filename(String value) => jsProxy['filename'] = value;

 DangerType get danger => _createDangerType(jsProxy['danger']);
 set danger(DangerType value) => jsProxy['danger'] = jsify(value);

 String get mime => jsProxy['mime'];
 set mime(String value) => jsProxy['mime'] = value;

 String get startTime => jsProxy['startTime'];
 set startTime(String value) => jsProxy['startTime'] = value;

 String get endTime => jsProxy['endTime'];
 set endTime(String value) => jsProxy['endTime'] = value;

 State get state => _createState(jsProxy['state']);
 set state(State value) => jsProxy['state'] = jsify(value);

 bool get paused => jsProxy['paused'];
 set paused(bool value) => jsProxy['paused'] = value;

 InterruptReason get error => _createInterruptReason(jsProxy['error']);
 set error(InterruptReason value) => jsProxy['error'] = jsify(value);

 int get bytesReceived => jsProxy['bytesReceived'];
 set bytesReceived(int value) => jsProxy['bytesReceived'] = value;

 int get totalBytes => jsProxy['totalBytes'];
 set totalBytes(int value) => jsProxy['totalBytes'] = value;

 int get fileSize => jsProxy['fileSize'];
 set fileSize(int value) => jsProxy['fileSize'] = value;

 bool get exists => jsProxy['exists'];
 set exists(bool value) => jsProxy['exists'] = value;
}

Extends

ChromeObject > DownloadQuery

Constructors

new DownloadQuery({List<String> query, String startedBefore, String startedAfter, String endedBefore, String endedAfter, int totalBytesGreater, int totalBytesLess, String filenameRegex, String urlRegex, int limit, List<String> orderBy, int id, String url, String filename, DangerType danger, String mime, String startTime, String endTime, State state, bool paused, InterruptReason error, int bytesReceived, int totalBytes, int fileSize, bool exists}) #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
DownloadQuery({List<String> query, String startedBefore, String startedAfter, String endedBefore, String endedAfter, int totalBytesGreater, int totalBytesLess, String filenameRegex, String urlRegex, int limit, List<String> orderBy, int id, String url, String filename, DangerType danger, String mime, String startTime, String endTime, State state, bool paused, InterruptReason error, int bytesReceived, int totalBytes, int fileSize, bool exists}) {
 if (query != null) this.query = query;
 if (startedBefore != null) this.startedBefore = startedBefore;
 if (startedAfter != null) this.startedAfter = startedAfter;
 if (endedBefore != null) this.endedBefore = endedBefore;
 if (endedAfter != null) this.endedAfter = endedAfter;
 if (totalBytesGreater != null) this.totalBytesGreater = totalBytesGreater;
 if (totalBytesLess != null) this.totalBytesLess = totalBytesLess;
 if (filenameRegex != null) this.filenameRegex = filenameRegex;
 if (urlRegex != null) this.urlRegex = urlRegex;
 if (limit != null) this.limit = limit;
 if (orderBy != null) this.orderBy = orderBy;
 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 (paused != null) this.paused = paused;
 if (error != null) this.error = error;
 if (bytesReceived != null) this.bytesReceived = bytesReceived;
 if (totalBytes != null) this.totalBytes = totalBytes;
 if (fileSize != null) this.fileSize = fileSize;
 if (exists != null) this.exists = exists;
}

new DownloadQuery.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
DownloadQuery.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

int bytesReceived #

int get bytesReceived => jsProxy['bytesReceived'];
set bytesReceived(int value) => jsProxy['bytesReceived'] = value;

DangerType danger #

DangerType get danger => _createDangerType(jsProxy['danger']);
set danger(DangerType value) => jsProxy['danger'] = jsify(value);

String endedAfter #

String get endedAfter => jsProxy['endedAfter'];
set endedAfter(String value) => jsProxy['endedAfter'] = value;

String endedBefore #

String get endedBefore => jsProxy['endedBefore'];
set endedBefore(String value) => jsProxy['endedBefore'] = value;

String endTime #

String get endTime => jsProxy['endTime'];
set endTime(String value) => jsProxy['endTime'] = value;

InterruptReason error #

InterruptReason get error => _createInterruptReason(jsProxy['error']);
set error(InterruptReason value) => jsProxy['error'] = jsify(value);

bool exists #

bool get exists => jsProxy['exists'];
set exists(bool value) => jsProxy['exists'] = value;

String filename #

String get filename => jsProxy['filename'];
set filename(String value) => jsProxy['filename'] = value;

String filenameRegex #

String get filenameRegex => jsProxy['filenameRegex'];
set filenameRegex(String value) => jsProxy['filenameRegex'] = value;

int fileSize #

int get fileSize => jsProxy['fileSize'];
set fileSize(int value) => jsProxy['fileSize'] = value;

int id #

int get id => jsProxy['id'];
set id(int value) => jsProxy['id'] = value;

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

int limit #

int get limit => jsProxy['limit'];
set limit(int value) => jsProxy['limit'] = value;

String mime #

String get mime => jsProxy['mime'];
set mime(String value) => jsProxy['mime'] = value;

List<String> orderBy #

List<String> get orderBy => listify(jsProxy['orderBy']);
set orderBy(List<String> value) => jsProxy['orderBy'] = jsify(value);

bool paused #

bool get paused => jsProxy['paused'];
set paused(bool value) => jsProxy['paused'] = value;

List<String> query #

List<String> get query => listify(jsProxy['query']);
set query(List<String> value) => jsProxy['query'] = jsify(value);

String startedAfter #

String get startedAfter => jsProxy['startedAfter'];
set startedAfter(String value) => jsProxy['startedAfter'] = value;

String startedBefore #

String get startedBefore => jsProxy['startedBefore'];
set startedBefore(String value) => jsProxy['startedBefore'] = value;

String startTime #

String get startTime => jsProxy['startTime'];
set startTime(String value) => jsProxy['startTime'] = value;

State state #

State get state => _createState(jsProxy['state']);
set state(State value) => jsProxy['state'] = jsify(value);

int totalBytes #

int get totalBytes => jsProxy['totalBytes'];
set totalBytes(int value) => jsProxy['totalBytes'] = value;

int totalBytesGreater #

int get totalBytesGreater => jsProxy['totalBytesGreater'];
set totalBytesGreater(int value) => jsProxy['totalBytesGreater'] = value;

int totalBytesLess #

int get totalBytesLess => jsProxy['totalBytesLess'];
set totalBytesLess(int value) => jsProxy['totalBytesLess'] = value;

String url #

String get url => jsProxy['url'];
set url(String value) => jsProxy['url'] = value;

String urlRegex #

String get urlRegex => jsProxy['urlRegex'];
set urlRegex(String value) => jsProxy['urlRegex'] = value;

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();