EventEmitter([bool isAsync = true ])

Creates an instance of EventEmitter, which depending on isAsync, delivers events synchronously or asynchronously.

Source

EventEmitter([bool isAsync = true]) {
  _controller = new StreamController<T>.broadcast(sync: !isAsync);
}