bool isWindows
final

Whether the operating system is a version of Microsoft Windows.

Source

static final bool isWindows = (_operatingSystem == "windows")