MemoryInfo class
class MemoryInfo extends ChromeObject { MemoryInfo({num capacity, num availableCapacity}) { if (capacity != null) this.capacity = capacity; if (availableCapacity != null) this.availableCapacity = availableCapacity; } MemoryInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); num get capacity => jsProxy['capacity']; set capacity(num value) => jsProxy['capacity'] = jsify(value); num get availableCapacity => jsProxy['availableCapacity']; set availableCapacity(num value) => jsProxy['availableCapacity'] = jsify(value); }
Extends
ChromeObject > MemoryInfo
Constructors
new MemoryInfo({num capacity, num availableCapacity}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
MemoryInfo({num capacity, num availableCapacity}) { if (capacity != null) this.capacity = capacity; if (availableCapacity != null) this.availableCapacity = availableCapacity; }
new MemoryInfo.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
MemoryInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
num availableCapacity #
num get availableCapacity => jsProxy['availableCapacity'];
set availableCapacity(num value) => jsProxy['availableCapacity'] = jsify(value);
num capacity #
num get capacity => jsProxy['capacity'];
set capacity(num value) => jsProxy['capacity'] = jsify(value);
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();