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