isWindows top-level property

bool get isWindows

Whether the current operating system is a version of Microsoft Windows.

Identified by operatingSystem being the string windows.

The value is false if the code is running inside a browser, even if that browser is running on Windows (see isBrowser).

Implementation

@pragma('vm:prefer-inline')
bool get isWindows => OperatingSystem.current.isWindows;