Hot reload เป็นหนึ่งในคุณสมบัติที่นักพัฒนาชื่นชอบมากที่สุดของ Flutter — มันช่วยให้คุณเห็นการเปลี่ยนแปลงโค้ด สะท้อนในแอปที่กำลังทำงานเกือบจะทันที (ในเสี้ยววินาที) โดยไม่ต้องรีสตาร์ทแอปหรือสูญเสีย state ปัจจุบันของมัน มันเร่งการพัฒนาและการทดลองได้อย่างมาก
hot reload ทำอะไร
HOT RELOAD injects updated code into the RUNNING app:
→ make a code change → save → see it reflected in ~1 second
→ the app KEEPS its current STATE (you stay on the same screen, with the same data)
→ no full restart, no re-navigating to where you were
→ Edit UI/logic and see the result almost immediately while the app runs.
