debugPaintOverlay method

void debugPaintOverlay(
  1. PaintingContext context,
  2. Offset offset
)

Implementation

void debugPaintOverlay(PaintingContext context, Offset offset) {
  Rect overlayRect =
      Rect.fromLTWH(offset.dx, offset.dy, size.width, size.height);
  context.addLayer(InspectorOverlayLayer(
    overlayRect: overlayRect,
  ));
}