isMacOs function

bool isMacOs([
  1. PlatformDetector? detector
])
  • isMacOs : true if the current platform OS category is MacOs (It does not matter if it is a web or an application).

Implementation

bool isMacOs([PlatformDetector? detector]) =>
    (detector?.name.category ?? PlatformDetector.platform.name.category) ==
    PlatformCategory.macOs;