isDesktop static method

bool isDesktop()

Implementation

static bool isDesktop() {
  try {
    return Platform.isMacOS || Platform.isLinux || Platform.isWindows;
  } catch (e) {
    return false;
  }
}