isSupported static method

bool isSupported(
  1. BuildContext context
)

Whether the current device supports showing the system context menu.

Currently, this is only supported on newer versions of iOS.

See also:

Implementation

static bool isSupported(BuildContext context) {
  return defaultTargetPlatform == TargetPlatform.iOS &&
      (MediaQuery.maybeSupportsShowingSystemContextMenu(context) ?? false);
}