Flutter : stream two Streams into a single screen?

后端 未结 2 1350
误落风尘
误落风尘 2021-02-07 00:41

I have two streams fetching from two different api.

Stream get monthOutStream => monthOutController.stream;
Stream get resultOu         


        
2条回答
  •  误落风尘
    2021-02-07 01:22

    Observable.combineLatest2(
            aStream,
            bStream,
            (a, b, c) =>
            a != '' && b != '');
    

    combineLatestN returns a combined stream

提交回复
热议问题