setSearchText method

Future<void> setSearchText(
  1. String? searchText
)

Pre-populate the search text to be used.

On iOS, if InAppWebViewSettings.isFindInteractionEnabled is `true, it will pre-populate the system find panel's search text field with a search query.

Officially Supported Platforms/Implementations:

Implementation

Future<void> setSearchText(String? searchText) async {
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent('searchText', () => searchText);
  await channel?.invokeMethod('setSearchText', args);
}