isLinux property

bool isLinux

Whether the operating system is a version of Linux.

Implementation

static bool get isLinux {
  try {
    return platform.isLinux;
  } catch (e) {
    return false;
  }
}