restartApp method

Future<void> restartApp()

Implementation

Future<void> restartApp() async {
  final stagingPath = _stagingPath;
  if (stagingPath == null || stagingPath.isEmpty) {
    throw StateError("No downloaded update is ready to install");
  }

  await _plugin.installUpdate(
    stagingPath: stagingPath,
    removedFiles: _removedFiles,
  );
}