highlightRect method

Future<void> highlightRect(
  1. int x,
  2. int y,
  3. int width,
  4. int height, {
  5. Rgba? color,
  6. Rgba? outlineColor,
})

Implementation

Future<void> highlightRect(int x, int y, int width, int height,
    {Rgba? color, Rgba? outlineColor}) {
  var params = <String, dynamic>{
    'x': x,
    'y': y,
    'width': width,
    'height': height
  };

  if (color != null) {
    params['color'] = color;
  }

  if (outlineColor != null) {
    params['outlineColor'] = outlineColor;
  }

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