restartApp method

Future<void> restartApp({
  1. FutureOr<void> onRestart()?,
})

Restart the application.

Reload all widgets and states.

You can describe the process at restart by passing onRestart.

アプリをリスタートします。

すべてのウィジェットや状態をリロードします。

onRestartを渡すことでリスタート時の処理を記述することができます。

Implementation

Future<void> restartApp({
  FutureOr<void> Function()? onRestart,
}) =>
    MasamuneApp.restartApp(this, onRestart: onRestart);