ChromeSystemMemory class
The chrome.system.memory API.
class ChromeSystemMemory extends ChromeApi {
 static final JsObject _system_memory = chrome['system']['memory'];
 ChromeSystemMemory._();
 bool get available => _system_memory != null;
 /**
  * Get physical memory information.
  */
 Future<MemoryInfo> getInfo() {
   if (_system_memory == null) _throwNotAvailable();
   var completer = new ChromeCompleter<MemoryInfo>.oneArg(_createMemoryInfo);
   _system_memory.callMethod('getInfo', [completer.callback]);
   return completer.future;
 }
 void _throwNotAvailable() {
   throw new UnsupportedError("'chrome.system.memory' is not available");
 }
}
Extends
ChromeApi > ChromeSystemMemory
Properties
final bool available #
Returns true if the API is available. The common causes of an API not being avilable are:
- a permission is missing in the application's manifest.json file
 - the API is defined on a newer version of Chrome then the current runtime
 
docs inherited from ChromeApi 
bool get available => _system_memory != null;
Methods
Future<MemoryInfo> getInfo() #
Get physical memory information.
Future<MemoryInfo> getInfo() {
 if (_system_memory == null) _throwNotAvailable();
 var completer = new ChromeCompleter<MemoryInfo>.oneArg(_createMemoryInfo);
 _system_memory.callMethod('getInfo', [completer.callback]);
 return completer.future;
}