isLinux property

bool get isLinux

Whether the operating system is a version of Linux.

Implementation

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