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
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
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();