dismissNativeContextMenu function
Closes a native context menu that is open, which then answers null.
Implementation
Future<void> dismissNativeContextMenu() async {
try {
await _channel.invokeMethod<void>('dismiss');
} on MissingPluginException {
// Nothing native to close.
}
}