OnRestartCallback typedef
OnRestartCallback =
void Function()
Called when the tester taps "Restart now" on showRestartBanner. The
SDK deliberately doesn't restart the app itself — Flutter has no
built-in "restart the process" API, and the right mechanism varies by
app (a Restart.restartApp()-style package, popping back to a root
widget and rebuilding it, or simply asking the user to close and reopen
manually). Provide whichever of those your app already uses.
Implementation
typedef OnRestartCallback = void Function();