AsyncPublisherBase<Log extends CustomLog> constructor
AsyncPublisherBase<Log extends CustomLog> ({
- bool sync = false,
- void onError(
- Object error,
- StackTrace stackTrace
Creates the publisher and starts its processing queue.
Implementation
AsyncPublisherBase({this.sync = false, this.onError})
: _controller = StreamController<Log>(sync: sync) {
_listen();
}