Reputation: 470
I want to StreamProvider
to pass my UserData
object through out all the widgets, so it can be accessible anywhere.
The UserData
object is taken/read from the Firestore database.
My questions are:
Upvotes: 2
Views: 508
Reputation: 492
With Provider, you can use Consumer and Selector to avoid unnecessarily rebuilds.
https://pub.dev/documentation/provider/latest/
Upvotes: 1