osDescriptor function

String osDescriptor()

"macos 14.6", with long version strings capped at 60 characters.

Implementation

String osDescriptor() {
  final ver = io.Platform.operatingSystemVersion;
  final trimmed = ver.length > 60 ? '${ver.substring(0, 60)}…' : ver;
  return '${io.Platform.operatingSystem} $trimmed';
}