I might be getting confused with dart streams and RX related frameworks here.
But just wanted to check, is it possible to map to a new async stream?
For example
apiService.signInStream
returns Stream<signinResponse>
apiService.getUserDetailsStream
returns Stream<userResponse>
So I want to make the sign in call, take the user id from it to get the user details.
I tried something like this...
apiService.signInStream(requestSignIn).asyncMap((event) => apiService.getUserDetailsStream(event.userId));
But that returns...
Stream<Stream<userResponse>>
I'd like it to return <Stream<userResponse>
Do I have to listen within the map somehow?
Thanks