parseScanPlatforms function
Parses a scan platform argument. all returns every supported platform.
Implementation
Set<ScanPlatform>? parseScanPlatforms(String value) {
final normalized = value.trim().toLowerCase();
if (normalized == 'all') {
return allScanPlatforms;
}
for (final platform in ScanPlatform.values) {
if (platform.label == normalized) {
return {platform};
}
}
return null;
}