📜  dart StreamController broadcast() - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:58.505000             🧑  作者: Mango

代码示例1
var controller= StreamController.broadcast();
controller.stream.listen(print); 
controller.sink.add(1); // will print 1