State management என்பது ஒரு app தனது data (state) ஐ எவ்வாறு நிர்வகிக்கிறது, update செய்கிறது, மற்றும் UI இல் மாற்றங்களை பிரதிபலிக்கிறது என்பதைக் குறிக்கிறது. Apps பெரிதாகும்போது, state ஐ நன்றாக நிர்வகிப்பது முக்கியமாகிறது, மேலும் Flutter built-in mechanisms (setState) மற்றும் பல libraries (Provider, Riverpod, Bloc) ஐ வழங்குகிறது.
State என்றால் என்ன
STATE = data that can change and affects the UI:
→ UI state: is a checkbox checked? what's in a text field? is a menu open?
→ app state: the logged-in user, items in a cart, fetched data
→ When state changes, the UI must UPDATE to reflect it.
