Install
Add the package:Restart the app
Import the package and callRestart.restartApp():
Restart.restartApp() returns a RestartResult with success, the resolved mode, and platform error details when the restart cannot be started.
Customize behavior
Default behavior works for normal app restart flows. Pass options only when your app needs a specific platform behavior.Check capabilities
UseRestart.restartCapability() when your UI should adapt to the current platform.