Flutter & Dart (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What is the difference between `hot reload` and `hot restart`?
junior LevelHTTP & REST APIs
In Simple Words:
- Hot Reload (
r): Injects updated Dart source code directly into the running Dart VM. Preserves the current application state in memory! Fast (< 500ms). Perfect for rapid UI iteration. - Hot Restart (
R): Destroys current app state and restarts the Dart app frommain(). Clears memory; takes 1-2 seconds. Required when modifying static fields, global variables, orinitState()methods.