rebirth static method
rebuild the whole app from any point
Implementation
static void rebirth(BuildContext context) {
final _PhoenixState? state = context.findAncestorStateOfType<_PhoenixState>();
if (state == null) {
throw UnsupportedError("context does not contain Phoenix in subtree");
} else {
state.restartApp();
}
}