toTargetPlatformArch method

TargetPlatformArch toTargetPlatformArch()

Implementation

TargetPlatformArch toTargetPlatformArch() {
  switch (this) {
    case 'X86_64':
      return TargetPlatformArch.x86_64;
    case 'X86':
      return TargetPlatformArch.x86;
    case 'ARM64':
      return TargetPlatformArch.arm64;
    case 'ARM_EABI':
      return TargetPlatformArch.armEabi;
    case 'ARM_EABIHF':
      return TargetPlatformArch.armEabihf;
  }
  throw Exception('$this is not known in enum TargetPlatformArch');
}