discontinuedPackage os_detect has been discontinued and replaced by platform.

isWindows property

bool get isWindows

Whether the operating system is a version of Microsoft Windows.

Identified by id being the string windows.

Implementation

bool get isWindows => _osId is WindowsOS;