Deamon.withController constructor

Deamon.withController(
  1. StreamController<Object?> controller
)

Implementation

Deamon.withController(StreamController<Object?> controller)
  : _controller = controller {
  if (!controller.stream.isBroadcast) {
    throw ArgumentError('A broadcast controller is required');
  }
}