OperatingSystemGetters extension Null safety

Convenience operations on OperatingSystem.

Implemented as extensions to allow users to implement OperatingSystem without having to implement all of these getters.

on

Properties

isAndroid bool
Whether the operating system is a version of Android. [...]
read-only
isBrowser bool
Whether running in a web browser. [...]
read-only
isFuchsia bool
Whether the operating system is a version of Fuchsia. [...]
read-only
isIOS bool
Whether the operating system is a version of iOS. [...]
read-only
isLinux bool
Whether the operating system is a version of Linux. [...]
read-only
isMacOS bool
Whether the operating system is a version of macOS. [...]
read-only
isWindows bool
Whether the operating system is a version of Microsoft Windows. [...]
read-only