Message class
class Message extends ChromeObject {
Message({int subchannelId, String payload}) {
if (subchannelId != null) this.subchannelId = subchannelId;
if (payload != null) this.payload = payload;
}
Message.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
int get subchannelId => jsProxy['subchannelId'];
set subchannelId(int value) => jsProxy['subchannelId'] = value;
String get payload => jsProxy['payload'];
set payload(String value) => jsProxy['payload'] = value;
}
Extends
ChromeObject > Message
Constructors
new Message({int subchannelId, String payload}) #
Create a new instance of a ChromeObject, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
Message({int subchannelId, String payload}) {
if (subchannelId != null) this.subchannelId = subchannelId;
if (payload != null) this.payload = payload;
}
new Message.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
Message.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
String payload #
String get payload => jsProxy['payload'];
set payload(String value) => jsProxy['payload'] = value;
int subchannelId #
int get subchannelId => jsProxy['subchannelId'];
set subchannelId(int value) => jsProxy['subchannelId'] = value;
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();