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