restartApp method Null safety

void restartApp()

Implementation

void restartApp() {
  unikey = UniqueKey();
  update();
}