idle property

JSIdle get idle

Use the chrome.idle API to detect when the machine's idle state changes.

Implementation

JSIdle get idle {
  var idleNullable = this.idleNullable;
  if (idleNullable == null) {
    throw ApiNotAvailableException('chrome.idle');
  }
  return idleNullable;
}