softwareDownloader method
Get the SoftwareDownloader that match the current script configuration.
Implementation
SoftwareDownloader softwareDownloader(final OperatingSystem currentOs) {
switch (projectType) {
case dartProjectType:
case flutterProjectType:
return DartSoftwareDownloader(hooksDir, currentOs);
default:
throw UnrecoverableException(
'Project type not supported\nPlease run setup tool',
ExitCode.config.code,
);
}
}