performPaint method

  1. @override
void performPaint(
  1. PaintingContext context,
  2. Offset offset
)
override

RenderLayoutBox real paint things after basiclly paint box model. Override which to paint layout or intrinsic things. Used by RenderReplaced, RenderFlowLayout, RenderFlexLayout.

Implementation

@override
void performPaint(PaintingContext context, Offset offset) {
  final dx = renderStyle.x.computedValue + offset.dx;
  final dy = renderStyle.y.computedValue + offset.dy - _baseline;
  visitChildren((child) {
    context.paintChild(child, Offset(dx, dy));
  });
}