void addEventListener(String type, EventListener listener, [bool useCapture]) { // Messages posted to ports are initially paused, allowing listeners to be // setup, start() needs to be explicitly invoked to begin handling messages. if (type == 'message') { _start(); } super.addEventListener(type, listener, useCapture); }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-html/MessagePort/addEventListener.html