current property

HostPlatform get current

Implementation

HostPlatform get current {
  final override = _current;
  if (override != null) return override;
  if (Platform.isMacOS) return HostPlatform.macos;
  if (Platform.isLinux) return HostPlatform.linux;
  if (Platform.isWindows) return HostPlatform.windows;
  return HostPlatform.unknown;
}