setInspectMode method

Future<void> setInspectMode(
  1. InspectMode mode, {
  2. HighlightConfig? highlightConfig,
})

Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection. mode Set an inspection mode. highlightConfig A descriptor for the highlight appearance of hovered-over nodes. May be omitted if enabled == false.

Implementation

Future<void> setInspectMode(
  InspectMode mode, {
  HighlightConfig? highlightConfig,
}) async {
  await _client.send('Overlay.setInspectMode', {
    'mode': mode,
    if (highlightConfig != null) 'highlightConfig': highlightConfig,
  });
}