action property

JSAction get action

Use the chrome.action API to control the extension's icon in the Google Chrome toolbar.

Implementation

JSAction get action {
  var actionNullable = this.actionNullable;
  if (actionNullable == null) {
    throw ApiNotAvailableException('chrome.action');
  }
  return actionNullable;
}