+ flutter dart stream How to unit test Stream.listen() in Dart Consider the following test code ... main() { StreamController controller; setUp(() { controller = StreamController.broadcast(sync: false); }); tearDown(() { controller.close(); ... wono | tweet Add comment Do you want to delete? YesNo