isLinux property

bool get isLinux

Returns true if the current platform is Linux.

Implementation

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