operatingSystem property

String operatingSystem

A string representing the operating system or platform.

Possible values include: "android" "fuchsia" "ios" "linux" "macos" "windows"

Note that this list may change over time so platform-specific logic should be guarded by the appropriate boolean getter e.g. isMacOS.

Implementation

@pragma("vm:platform-const")
static String get operatingSystem => _operatingSystem;