isLinux property

bool get isLinux

If the current operating system is a Linux distro (non web browser).

Implementation

static bool get isLinux => !isWeb && defaultTargetPlatform == TargetPlatform.linux;