restart static method

void restart(
  1. BuildContext context
)

Restart the app (useful after language changes).

Implementation

static void restart(BuildContext context) {
  context.findAncestorStateOfType<_NyAppState>()?.restart();
}