isDesktop method Null safety

bool isDesktop()

Implementation

static bool isDesktop() {
  return Platform.isWindows ||
      Platform.isMacOS ||
      Platform.isLinux ||
      Platform.isFuchsia;
}