searchInResponseBody method

Future<List<SearchMatch>> searchInResponseBody(
  1. RequestId requestId,
  2. String query, {
  3. bool? caseSensitive,
  4. bool? isRegex,
})

Searches for given string in response content. requestId Identifier of the network response to search. query String to search for. caseSensitive If true, search is case sensitive. isRegex If true, treats string parameter as regex. Returns: List of search matches.

Implementation

Future<List<debugger.SearchMatch>> searchInResponseBody(
    RequestId requestId, String query,
    {bool? caseSensitive, bool? isRegex}) async {
  var result = await _client.send('Network.searchInResponseBody', {
    'requestId': requestId,
    'query': query,
    if (caseSensitive != null) 'caseSensitive': caseSensitive,
    if (isRegex != null) 'isRegex': isRegex,
  });
  return (result['result'] as List)
      .map((e) => debugger.SearchMatch.fromJson(e as Map<String, dynamic>))
      .toList();
}