isMacOSArm64 static method

bool isMacOSArm64()

Returns true if this is a macOS arm64.

Implementation

static bool isMacOSArm64() {
  if (!Platform.isMacOS) return false;
  if (_macOSArm64 != null) return _macOSArm64!;
  var output = _runUnameM()!;
  return _macOSArm64 = output == 'arm64';
}