isWindowsOs function

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

Implementation

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