pkg.os_detect library Null safety

Information about the current operating system.

Properties

isAndroid bool
Whether the current operating system is a version of Android.
read-only
isBrowser bool
Whether running in a web browser.
read-only
isFuchsia bool
Whether the current operating system is a version of Fuchsia.
read-only
isIOS bool
Whether the current operating system is a version of iOS.
read-only
isLinux bool
Whether the current operating system is a version of Linux.
read-only
isMacOS bool
Whether the current operating system is a version of macOS.
read-only
isWindows bool
Whether the current operating system is a version of Microsoft Windows.
read-only
operatingSystem String
Identification of the current operating system or platform.
read-only
operatingSystemVersion String
Representation of the version of the current operating system or platform.
read-only