getSelectedText method
Gets the selected text.
Officially Supported Platforms/Implementations:
- Android WebView:
- This method is implemented using JavaScript.
- iOS WKWebView:
- This method is implemented using JavaScript.
- Linux WPE WebKit:
- This method is implemented using JavaScript.
- macOS WKWebView:
- This method is implemented using JavaScript.
- Web <iframe> but requires same origin:
- This method is implemented using JavaScript.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<String?> getSelectedText() => platform.getSelectedText();