Target.fromArchitectureAndOS constructor
Target.fromArchitectureAndOS(
- Architecture architecture,
- OS os
Implementation
factory Target.fromArchitectureAndOS(
Architecture architecture,
OS os,
) {
for (final value in values) {
if (value.os == os && value.architecture == architecture) {
return value;
}
}
throw ArgumentError('Unsupported combination of OS and architecture: '
"'${os}_$architecture'");
}