addEventListener 方法
- String type,
- EventListener? listener,
- [bool? useCapture]
override
实现
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);
}