Dart Documentationchrome.commandsCommand

Command class

class Command extends ChromeObject {
 Command({String name, String description, String shortcut}) {
   if (name != null) this.name = name;
   if (description != null) this.description = description;
   if (shortcut != null) this.shortcut = shortcut;
 }
 Command.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * The name of the Extension Command
  */
 String get name => jsProxy['name'];
 set name(String value) => jsProxy['name'] = value;

 /**
  * The Extension Command description
  */
 String get description => jsProxy['description'];
 set description(String value) => jsProxy['description'] = value;

 /**
  * The shortcut active for this command, or blank if not active.
  */
 String get shortcut => jsProxy['shortcut'];
 set shortcut(String value) => jsProxy['shortcut'] = value;
}

Extends

ChromeObject > Command

Constructors

new Command({String name, String description, String shortcut}) #

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

docs inherited from ChromeObject
Command({String name, String description, String shortcut}) {
 if (name != null) this.name = name;
 if (description != null) this.description = description;
 if (shortcut != null) this.shortcut = shortcut;
}

new Command.fromProxy(JsObject jsProxy) #

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

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

Properties

String description #

The Extension Command description

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

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

String name #

The name of the Extension Command

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

String shortcut #

The shortcut active for this command, or blank if not active.

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