clearMatches method
Clears the highlighting surrounding text matches created by findAll.
NOTE: on iOS, if InAppWebViewSettings.isFindInteractionEnabled
is true
,
it uses the built-in find interaction native UI,
otherwise this is implemented using CSS and Javascript.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebView.clearMatches)
- iOS (if
InAppWebViewSettings.isFindInteractionEnabled
istrue
: Official API - UIFindInteraction.dismissFindNavigator) - MacOS
Implementation
Future<void> clearMatches() async {
Map<String, dynamic> args = <String, dynamic>{};
await channel?.invokeMethod('clearMatches', args);
}