Dart API Reference
dart:io
Platform
isWindows
isWindows
property
Returns true if the operating system is Windows.
bool
isWindows
read-only
Returns true if the operating system is Windows.