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