Answers for "dart StreamController broadcast()"

0

dart StreamController broadcast()

var controller= StreamController<int>.broadcast();
controller.stream.listen(print); 
controller.sink.add(1); // will print 1
Posted by: Guest on May-15-2021

Browse Popular Code Answers by Language