On this page
MessageEvent factory constructor
MessageEvent(Source
factory MessageEvent(String type,
{bool canBubble: false,
bool cancelable: false,
Object data,
String origin,
String lastEventId,
Window source,
List<MessagePort> messagePorts}) {
if (source == null) {
source = window;
}
MessageEvent event = document._createEvent("MessageEvent");
event._initMessageEvent(type, canBubble, cancelable, data, origin,
lastEventId, source, messagePorts);
return event;
}
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/MessageEvent/MessageEvent.html