isLinuxOs function

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

Implementation

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