Dart Documentationchrome.processesCache

Cache class

The Cache object contains information about the size and utilization of a cache used by the browser.

class Cache extends ChromeObject {
 Cache({var size, var liveSize}) {
   if (size != null) this.size = size;
   if (liveSize != null) this.liveSize = liveSize;
 }
 Cache.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * The size of the cache, in bytes.
  */
 dynamic get size => jsProxy['size'];
 set size(var value) => jsProxy['size'] = jsify(value);

 /**
  * The part of the cache that is utilized, in bytes.
  */
 dynamic get liveSize => jsProxy['liveSize'];
 set liveSize(var value) => jsProxy['liveSize'] = jsify(value);
}

Extends

ChromeObject > Cache

Constructors

new Cache({size, liveSize}) #

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

docs inherited from ChromeObject
Cache({var size, var liveSize}) {
 if (size != null) this.size = size;
 if (liveSize != null) this.liveSize = liveSize;
}

new Cache.fromProxy(JsObject jsProxy) #

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

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

Properties

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

var liveSize #

The part of the cache that is utilized, in bytes.

dynamic get liveSize => jsProxy['liveSize'];
set liveSize(var value) => jsProxy['liveSize'] = jsify(value);

var size #

The size of the cache, in bytes.

dynamic get size => jsProxy['size'];
set size(var value) => jsProxy['size'] = jsify(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();