isDesktopOrWeb property
bool
get
isDesktopOrWeb
判断当前平台是否为桌面端(macOS、Windows、Linux)或 Web 用于 UI 层进行平台分支判断,桌面端/Web 使用三栏布局等桌面化交互
Implementation
static bool get isDesktopOrWeb {
if (kIsWeb) return true;
return Platform.isMacOS || Platform.isWindows || Platform.isLinux;
}