clearMatches method
Clears the highlighting surrounding text matches created by findAll.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.clearMatches)
- iOS WKWebView:
- If InAppWebViewSettings.isFindInteractionEnabled is
true, it uses the built-in find interaction native UI, otherwise this is implemented using CSS and Javascript. In this case, it will use the Official API - UIFindInteraction.dismissFindNavigator
- If InAppWebViewSettings.isFindInteractionEnabled is
- macOS WKWebView
- Linux WPE WebKit (Official API - webkit_find_controller_search_finish)
- Windows WebView2 (Official API - ICoreWebView2Find.Stop)
Use the PlatformFindInteractionController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> clearMatches() => platform.clearMatches();