StreamSubscription sc = StreamSubscription();
Stream s = Stream();
sc.addStream(s);
var bs = sc.stream.asBroadcastStream(); // this works
StreamSubscription sc = StreamSubscription();
Stream s = Stream();
sc.addStream(s);
var bs = sc.stream.asBroadcastStream(); // this works
转载于:https://www.cnblogs.com/pythonClub/p/10839163.html