highlightRect method
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,
});
}