PlatformCapabilities class

平台能力探测(编译期无法按 TargetPlatform 拆依赖时的运行时开关)。

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

isDesktop → bool
当前是否为桌面(非 Web)。
no setter
supportsInAppWebView → bool
官方 webview_flutter 支持的平台:Android / iOS / macOS。 Windows / Linux / Web 不支持端内 WebView,应使用 url_launcher 外开。
no setter
supportsScreenshotGuard → bool
no_screenshot 在 Web / Linux 上多为无效,跳过调用避免无意义报错。
no setter