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.isIOS) return OperatingSystem.iOS;
  if (Platform.isLinux) return OperatingSystem.linux;
  if (Platform.isMacOS) return OperatingSystem.macOS;
  if (Platform.isWindows) return OperatingSystem.windows;
  return null;
}