getSearchResults method
Returns search results from given fromIndex to given toIndex from the search with the given
identifier.
searchId Unique search session identifier.
fromIndex Start index of the search result to be returned.
toIndex End index of the search result to be returned.
Returns: Ids of the search result nodes.
Implementation
Future<List<NodeId>> getSearchResults(
String searchId,
int fromIndex,
int toIndex,
) async {
var result = await _client.send('DOM.getSearchResults', {
'searchId': searchId,
'fromIndex': fromIndex,
'toIndex': toIndex,
});
return (result['nodeIds'] as List)
.map((e) => NodeId.fromJson(e as int))
.toList();
}