What is Hot Restart in Flutter?

Answer

Hot Restart fully re-runs the Flutter application from scratch. Unlike Hot Reload, it discards the current Dart state, re-initializes all objects and variables, and rebuilds the widget tree from the beginning. It is slower than Hot Reload but necessary when you make changes to initialization logic, global state, or native code. Hot Restart is triggered with R (capital) in the terminal.