dart StreamController broadcast() code example
Example: dart StreamController broadcast()
var controller= StreamController<int>.broadcast();
controller.stream.listen(print);
controller.sink.add(1); // will print 1
var controller= StreamController<int>.broadcast();
controller.stream.listen(print);
controller.sink.add(1); // will print 1