supportsScreenshotGuard property

bool get supportsScreenshotGuard

no_screenshot 在 Web / Linux 上多为无效,跳过调用避免无意义报错。

Implementation

static bool get supportsScreenshotGuard {
  if (kIsWeb) return false;
  switch (defaultTargetPlatform) {
    case TargetPlatform.android:
    case TargetPlatform.iOS:
    case TargetPlatform.macOS:
    case TargetPlatform.windows:
      return true;
    default:
      return false;
  }
}