StreamBuilder in a StatelessWidget
1 min readMar 15, 2019
StreamBuilder can be used to build a child widget under a StatelessWidget and yet the state is updated on stream update. Shouldn’t this be under a StatefulWidget for state updates? How does this work?
This is because StreamBuilder internally is a StatefulWidget and uses setState as needed based on updates from the specified stream.