Dart uses a single-threaded event loop to avoid the complexity of managing multiple threads for UI updates. This design helps keep animations smooth and prevents race conditions.
Calling setState() tells Flutter that the widget's state has changed and schedules a rebuild. Flutter then updates the UI efficiently.
Hot reload allows developers to see UI changes immediately without losing the current app state, speeding up the development process.
Async/await lets Dart run long tasks without stopping the UI thread, so the app stays responsive and smooth.
Without calling setState(), Flutter does not know the state changed, so the UI does not update and still shows the old value.
