statement to change program’s state. btnConfirm.setOnClickListener { txtGreeting.text = txtInput.text } // What happen if txtGreeting or txtInput is not exist
the data flow / state and the changes will propagate to the widget. But it also incorporate many paradigms : https://flutter.dev/docs/resources/faq#what-programming-paradigm-does-flutters-framework-use
When a state change happens, Flutter engine compares between new and old. - Only update widgets that have state changes. - Old widget then get garbage collected.
widgets. - These widgets need to communicate with each other, whether in one Container or when they’re being navigated. - Famous state management in Flutter: - BLoC - ScopedModel - Flutter Redux - Provider