install method Null safety

bool install(
  1. {bool installDart = false,
  2. bool activate = true}
)

Install dart/dcli

Implementation

bool install({bool installDart = false, bool activate = true}) {
  var installed = false;
  if (core.Settings().isLinux) {
    installed = LinuxDCliInstaller().install(installDart: installDart);
  } else {
    installed = MacOSDCliInstaller().install(installDart: installDart);
  }

  // DartProject.self.compile(install: true, overwrite: true);

  // addFileAssocation(binPath);

  // if (isCompletionSupported) {
  //   if (!isCompletionInstalled) {
  //     installTabCompletion();
  //   }
  // }

  // if (isPrivilegedUser) {
  //   _symlinkDCli(dcliPath);
  // }

  return installed;
}