Dart Documentationchrome.contextMenusContextMenusUpdateParams

ContextMenusUpdateParams class

class ContextMenusUpdateParams extends ChromeObject {
 ContextMenusUpdateParams({String type, String title, bool checked, List<String> contexts, var onclick, var parentId, List<String> documentUrlPatterns, List<String> targetUrlPatterns, bool enabled}) {
   if (type != null) this.type = type;
   if (title != null) this.title = title;
   if (checked != null) this.checked = checked;
   if (contexts != null) this.contexts = contexts;
   if (onclick != null) this.onclick = onclick;
   if (parentId != null) this.parentId = parentId;
   if (documentUrlPatterns != null) this.documentUrlPatterns = documentUrlPatterns;
   if (targetUrlPatterns != null) this.targetUrlPatterns = targetUrlPatterns;
   if (enabled != null) this.enabled = enabled;
 }
 ContextMenusUpdateParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * enum of `normal`, `checkbox`, `radio`, `separator`
  */
 String get type => jsProxy['type'];
 set type(String value) => jsProxy['type'] = value;

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

 bool get checked => jsProxy['checked'];
 set checked(bool value) => jsProxy['checked'] = value;

 List<String> get contexts => listify(jsProxy['contexts']);
 set contexts(List<String> value) => jsProxy['contexts'] = jsify(value);

 dynamic get onclick => jsProxy['onclick'];
 set onclick(var value) => jsProxy['onclick'] = jsify(value);

 /**
  * Note: You cannot change an item to be a child of one of its own
  * descendants.
  */
 dynamic get parentId => jsProxy['parentId'];
 set parentId(var value) => jsProxy['parentId'] = jsify(value);

 List<String> get documentUrlPatterns => listify(jsProxy['documentUrlPatterns']);
 set documentUrlPatterns(List<String> value) => jsProxy['documentUrlPatterns'] = jsify(value);

 List<String> get targetUrlPatterns => listify(jsProxy['targetUrlPatterns']);
 set targetUrlPatterns(List<String> value) => jsProxy['targetUrlPatterns'] = jsify(value);

 bool get enabled => jsProxy['enabled'];
 set enabled(bool value) => jsProxy['enabled'] = value;
}

Extends

ChromeObject > ContextMenusUpdateParams

Constructors

new ContextMenusUpdateParams({String type, String title, bool checked, List<String> contexts, onclick, parentId, List<String> documentUrlPatterns, List<String> targetUrlPatterns, bool enabled}) #

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

docs inherited from ChromeObject
ContextMenusUpdateParams({String type, String title, bool checked, List<String> contexts, var onclick, var parentId, List<String> documentUrlPatterns, List<String> targetUrlPatterns, bool enabled}) {
 if (type != null) this.type = type;
 if (title != null) this.title = title;
 if (checked != null) this.checked = checked;
 if (contexts != null) this.contexts = contexts;
 if (onclick != null) this.onclick = onclick;
 if (parentId != null) this.parentId = parentId;
 if (documentUrlPatterns != null) this.documentUrlPatterns = documentUrlPatterns;
 if (targetUrlPatterns != null) this.targetUrlPatterns = targetUrlPatterns;
 if (enabled != null) this.enabled = enabled;
}

new ContextMenusUpdateParams.fromProxy(JsObject jsProxy) #

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

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

Properties

bool checked #

bool get checked => jsProxy['checked'];
set checked(bool value) => jsProxy['checked'] = value;

List<String> contexts #

List<String> get contexts => listify(jsProxy['contexts']);
set contexts(List<String> value) => jsProxy['contexts'] = jsify(value);

List<String> documentUrlPatterns #

List<String> get documentUrlPatterns => listify(jsProxy['documentUrlPatterns']);
set documentUrlPatterns(List<String> value) => jsProxy['documentUrlPatterns'] = jsify(value);

bool enabled #

bool get enabled => jsProxy['enabled'];
set enabled(bool value) => jsProxy['enabled'] = value;

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

var onclick #

dynamic get onclick => jsProxy['onclick'];
set onclick(var value) => jsProxy['onclick'] = jsify(value);

var parentId #

Note: You cannot change an item to be a child of one of its own descendants.

dynamic get parentId => jsProxy['parentId'];
set parentId(var value) => jsProxy['parentId'] = jsify(value);

List<String> targetUrlPatterns #

List<String> get targetUrlPatterns => listify(jsProxy['targetUrlPatterns']);
set targetUrlPatterns(List<String> value) => jsProxy['targetUrlPatterns'] = jsify(value);

String title #

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

String type #

enum of normal, checkbox, radio, separator

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