isLinux property

bool isLinux

Whether the operating system is a version of Linux.

This value is false if the operating system is a specialized version of Linux that identifies itself by a different name, for example Android (see isAndroid). To override this property use linuxOverride.

Implementation

static bool get isLinux => linuxOverride ?? !isWeb && io.Platform.isLinux;