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); }
Creates an instance of EventEmitter, which depending on isAsync
,
delivers events synchronously or asynchronously.
EventEmitter([bool isAsync = true]) { _controller = new StreamController<T>.broadcast(sync: !isAsync); }