highlightRect method

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

Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport. x X coordinate y Y coordinate width Rectangle width height Rectangle height color The highlight fill color (default: transparent). outlineColor The highlight outline color (default: transparent).

Implementation

Future<void> highlightRect(int x, int y, int width, int height,
    {dom.RGBA? color, dom.RGBA? outlineColor}) async {
  await _client.send('Overlay.highlightRect', {
    'x': x,
    'y': y,
    'width': width,
    'height': height,
    if (color != null) 'color': color,
    if (outlineColor != null) 'outlineColor': outlineColor,
  });
}