# import method

Future<String> import(

1. String distribution,
2. String installLocation,
3. String filename,
4. {bool isVhd = false}

)

Import a WSL distro by name

## Implementation

    Future<String> import(
        String distribution, String installLocation, String filename,
        {bool isVhd = false}) async {
      if (installLocation == '') {
        installLocation = getInstancePath(distribution).path;
      } else {
        installLocation = SafePath(installLocation).path;
      }
      ProcessResult results;
      if (isVhd) {
        results = await Process.run(
            'wsl', ['--import', distribution, installLocation, filename, '--vhd'],
            stdoutEncoding: null);
      } else {
        results = await Process.run(
            'wsl', ['--import', distribution, installLocation, filename],
            stdoutEncoding: null);
      }
      return utf8Convert(results.stdout);
    }