flutter_full_restart library
Restart a running Flutter app from Dart.
- FullRestart.restart kills the process and cold-starts the app (RestartType.full) or rebuilds the Flutter UI in place (RestartType.ui).
- FullRestartScope wraps your app so a UI restart rebuilds the whole widget tree from scratch.
Classes
- FullRestart
- Restarts the running app.
- FullRestartPlatform
-
The contract every platform implementation of
flutter_full_restartfulfils. - FullRestartScope
-
Wrap your app in this widget so a UI-only restart
(
FullRestart.restart(type: RestartType.ui)) rebuilds the entire widget tree from scratch: everyStateis disposed and created again, just like on a fresh launch.
Enums
- RestartType
- How deep a restart goes.