Stream builder is used to draw widget based on data from stream.
What is the right way to achieve navigation based on the data?
Details: There is a logout button in drawer. It clears the session and emits a data in the stream.
There's a stateless widget with stream builder listening on data and updating UI. How to make it navigate to login screen based on data in the stream?