Target.fromArchitectureAndOS constructor

Target.fromArchitectureAndOS(
  1. Architecture architecture,
  2. 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'");
}