What is the equivalent of StreamBuilder but with Riverpod?

I want to automatically update user data, such as username or bio, whenever it changes. I was doing this with a StreamBuilder, but I found Riverpod and it looks cool. However, I am not sure if it is capable of updating instantly. So, what is the equivalent of StreamBuilder with Riverpod, if one exists?

>Solution :

You’re looking for StreamProvider:

StreamProvider is similar to FutureProvider but for Streams instead of Futures.

Leave a Reply