findNext method Null safety

Future<void> findNext(
  1. {required bool forward}
)

Highlights and scrolls to the next match found by findAllAsync(). Notifies WebView.onFindResultReceived listener.

forward represents the direction to search.

NOTE: on iOS, this is implemented using CSS and Javascript.

Official Android API: https://developer.android.com/reference/android/webkit/WebView#findNext(boolean)

Implementation

Future<void> findNext({required bool forward}) async {
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent('forward', () => forward);
  await _channel.invokeMethod('findNext', args);
}