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