stop method

Future<String> stop(
  1. String distribution
)

Stop a WSL distro by name

Implementation

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