current property

HostPlatform get current

Implementation

HostPlatform get current {
  if (Platform.isMacOS) return HostPlatform.macos;
  if (Platform.isLinux) return HostPlatform.linux;
  if (Platform.isWindows) return HostPlatform.windows;
  return HostPlatform.unknown;
}