isMacOS property
bool
isMacOS
Returns true if the operating system is macOS and not running on Web platform.
Implementation
static bool get isMacOS {
if (kIsWeb) {
return false;
}
return Platform.isMacOS;
}