isDesktop static method

bool isDesktop()

判断是否为桌面端

Implementation

static bool isDesktop() {
  final platform = getPlatformType();
  return platform == PlatformType.macos ||
      platform == PlatformType.windows ||
      platform == PlatformType.linux;
}