Dart Documentationchrome.declarativeWebRequestSendMessageToExtension

SendMessageToExtension class

Triggers the declarativeWebRequest.onMessage event.

class SendMessageToExtension extends ChromeObject {
 SendMessageToExtension({String message}) {
   if (message != null) this.message = message;
 }
 SendMessageToExtension.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * The value that will be passed in the `message` attribute of the dictionary
  * that is passed to the event handler.
  */
 String get message => jsProxy['message'];
 set message(String value) => jsProxy['message'] = value;
}

Extends

ChromeObject > SendMessageToExtension

Constructors

new SendMessageToExtension({String message}) #

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

docs inherited from ChromeObject
SendMessageToExtension({String message}) {
 if (message != null) this.message = message;
}

new SendMessageToExtension.fromProxy(JsObject jsProxy) #

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

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

Properties

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

String message #

The value that will be passed in the message attribute of the dictionary that is passed to the event handler.

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