getSearchText method
Get the search text used.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView (Official API - UIFindInteraction.getSearchText):
- If InAppWebViewSettings.isFindInteractionEnabled is
true, it will get the system find panel's search text field value.
- If InAppWebViewSettings.isFindInteractionEnabled is
- macOS WKWebView
- Linux WPE WebKit (Official API - webkit_find_controller_get_search_text)
- Windows WebView2
Use the PlatformFindInteractionController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<String?> getSearchText() => platform.getSearchText();