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.

Implementation

static bool isSupported(BuildContext context) {
  return MediaQuery.maybeSupportsShowingSystemContextMenu(context) ?? false;
}