create static method

Future<RustupInstaller> create({
  1. Logger? logger,
})

Implementation

static Future<RustupInstaller> create({Logger? logger}) {
  if (Platform.isWindows) {
    return _WindowsRustupInstaller.prepare(logger: logger);
  } else {
    return _UnixRustupInstaller.prepare(logger: logger);
  }
}