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) {
  for (int i = 0; i < paintingOrder.length; i++) {
    RenderBox child = paintingOrder[i];
    if (!isPositionPlaceholder(child)) {
      final RenderLayoutParentData childParentData = child.parentData as RenderLayoutParentData;
      if (child.hasSize) {
        context.paintChild(child, childParentData.offset + offset);
      }
    }
  }
}