isLinuxApp function

bool isLinuxApp([
  1. PlatformDetector? detector
])
  • isLinuxApp : true if the current platform OS is Linux and this is an Linux Application.

Implementation

bool isLinuxApp([PlatformDetector? detector]) =>
    (detector?.name ?? PlatformDetector.platform.name) == PlatformName.linux;