clearFocus method
Clears the current focus. On iOS and Android native WebView, it will clear also, for example, the current text selection.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - ViewGroup.clearFocus)
- iOS (Official API - UIResponder.resignFirstResponder)
Implementation
Future<void> clearFocus() => platform.clearFocus();