restart method

Future<String> restart()

Restart WSL

Implementation

Future<String> restart() async {
  ProcessResult results = await Process.run('wsl', ['--shutdown']);
  results = await Process.run('wsl', ['--shutdown']);
  return results.stdout;
}