getFlutterCpuArchitecture function

String getFlutterCpuArchitecture(
  1. String arch
)

Implementation

String getFlutterCpuArchitecture(String arch) {
  return switch (arch) {
    'amd64' => 'x64',
    'arm64' => 'arm64',
    _ => throw UnimplementedError(
        'Cpu architecture $arch is not supported by Flutter. '
        'See https://github.com/flutter/flutter/issues/75823 for more information.',
      ),
  };
}