isSupported static method
- BuildContext context
Whether the current device supports showing the system context menu.
Currently, this is only supported on newer versions of iOS.
See also:
- isSupportedByField, which uses this method and determines whether an individual EditableTextState supports the system context menu.
Implementation
static bool isSupported(BuildContext context) {
return defaultTargetPlatform == TargetPlatform.iOS &&
(MediaQuery.maybeSupportsShowingSystemContextMenu(context) ?? false);
}