How do you decide whether a piece of UI should be a StatelessWidget or a StatefulWidget?
Follow-up questions
- Where would you cancel a stream subscription and why?
- How would converting a StatefulWidget’s local state into a shared state solution change your widget?
#flutter#state#setState#architecture