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