I have two stream
stream1
stream2
I can give one to StreamBuilder and it work. For example:
return StreamBuilder(
stream: stream1,
But when I combine with StreamZip it now give error:
StreamZip combinedStream() {
return StreamZip(stream1, stream2]);
}
return StreamBuilder(
stream: combinedStream,
How I can combine stream1 and stream2 and give to StreamBuilder?
You can use
StreamGroup.mergeto merge twoStreams into a singleStream:Package dart:async