findAllAsync method
Finds all instances of find on the page and highlights them. Notifies WebView.onFindResultReceived listener.
find
represents the string to find.
NOTE: on Android native WebView, it finds all instances asynchronously. Successive calls to this will cancel any pending searches.
NOTE: on iOS, this is implemented using CSS and Javascript.
Supported Platforms/Implementations:
- Android native WebView (Official API - WebView.findAllAsync)
- iOS
Implementation
Future<void> findAllAsync({required String find}) async {
Map<String, dynamic> args = <String, dynamic>{};
args.putIfAbsent('find', () => find);
await _channel.invokeMethod('findAllAsync', args);
}