isLinux property

bool get isLinux

Whether the current platform is Linux.

Implementation

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