highlightNode method

Future<void> highlightNode(
  1. int nodeId, {
  2. Rgba? borderColor,
  3. Rgba? contentColor,
  4. Rgba? marginColor,
  5. Rgba? paddingColor,
  6. bool? showInfo,
})

Implementation

Future<void> highlightNode(
  int nodeId, {
  Rgba? borderColor,
  Rgba? contentColor,
  Rgba? marginColor,
  Rgba? paddingColor,
  bool? showInfo,
}) {
  var params = <String, dynamic>{
    'nodeId': nodeId,
    'highlightConfig': <String, dynamic>{
      if (borderColor != null) 'borderColor': borderColor,
      if (contentColor != null) 'contentColor': contentColor,
      if (marginColor != null) 'marginColor': marginColor,
      if (paddingColor != null) 'paddingColor': paddingColor,
      if (showInfo != null) 'showInfo': showInfo,
    },
  };

  return sendCommand('DOM.highlightNode', params: params);
}