Dart Documentationchrome.systemCpuInfo

CpuInfo class

class CpuInfo extends ChromeObject {
 CpuInfo({int numOfProcessors, String archName, String modelName}) {
   if (numOfProcessors != null) this.numOfProcessors = numOfProcessors;
   if (archName != null) this.archName = archName;
   if (modelName != null) this.modelName = modelName;
 }
 CpuInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 int get numOfProcessors => jsProxy['numOfProcessors'];
 set numOfProcessors(int value) => jsProxy['numOfProcessors'] = value;

 String get archName => jsProxy['archName'];
 set archName(String value) => jsProxy['archName'] = value;

 String get modelName => jsProxy['modelName'];
 set modelName(String value) => jsProxy['modelName'] = value;
}

Extends

ChromeObject > CpuInfo

Constructors

new CpuInfo({int numOfProcessors, String archName, String modelName}) #

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

docs inherited from ChromeObject
CpuInfo({int numOfProcessors, String archName, String modelName}) {
 if (numOfProcessors != null) this.numOfProcessors = numOfProcessors;
 if (archName != null) this.archName = archName;
 if (modelName != null) this.modelName = modelName;
}

new CpuInfo.fromProxy(JsObject jsProxy) #

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

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

Properties

String archName #

String get archName => jsProxy['archName'];
set archName(String value) => jsProxy['archName'] = value;

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

String modelName #

String get modelName => jsProxy['modelName'];
set modelName(String value) => jsProxy['modelName'] = value;

int numOfProcessors #

int get numOfProcessors => jsProxy['numOfProcessors'];
set numOfProcessors(int value) => jsProxy['numOfProcessors'] = 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();