clearFocus method

Future<void> clearFocus()

Clears the current focus. On iOS and Android native WebView, it will clear also, for example, the current text selection.

Officially Supported Platforms/Implementations:

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<void> clearFocus() => platform.clearFocus();