os property

OperatingSystem? get os

Returns the current OperatingSystem as read from the Platform getters.

Implementation

OperatingSystem? get os {
  if (Platform.isAndroid) return OperatingSystem.android;
  if (Platform.isLinux) return OperatingSystem.linux;
  if (Platform.isIOS) return OperatingSystem.iOS;
  if (Platform.isMacOS) return OperatingSystem.macOS;
  if (Platform.isWindows) return OperatingSystem.windows;
  if (Platform.isFuchsia) return OperatingSystem.fuchsia;
  return null;
}