Hey Flutter devs,
I have a question about BLoC and memory management that has been bothering me.
I know that BlocProvider automatically calls close() when the widget is disposed. So my question is: Do I still need to manually dispose of TextEditingControllers, FocusNodes, and Timers inside the close() method?
My confusion: If BlocProvider already calls close() automatically, why do I need to manually dispose everything? Won’t Flutter handle this?
Some people say it’s necessary to prevent memory leaks, but others say the framework handles it.
What’s the correct approach? Should I keep the manual disposal or is it redundant?
Thanks!