platform property

String get platform

The platform (osName + architecture).

Implementation

static String get platform {
  var os = osName;

  if (os.isEmpty) {
    return '';
  }

  var arch = architecture;

  if (arch.isEmpty) {
    return os;
  }

  return '$os-$arch';
}