isDesktop static method
判断是否为桌面端
Implementation
static bool isDesktop() {
final platform = getPlatformType();
return platform == PlatformType.macos ||
platform == PlatformType.windows ||
platform == PlatformType.linux;
}
判断是否为桌面端
static bool isDesktop() {
final platform = getPlatformType();
return platform == PlatformType.macos ||
platform == PlatformType.windows ||
platform == PlatformType.linux;
}