paintInlineChildren method

  1. @protected
void paintInlineChildren(
  1. PaintingContext context,
  2. Offset offset
)

Paints each inline child.

Render children whose TextParentData.offset is null will be skipped by this method.

Implementation

@protected
void paintInlineChildren(PaintingContext context, Offset offset) {
  RenderBox? child = firstChild;
  while (child != null) {
    final TextParentData childParentData = child.parentData! as TextParentData;
    final Offset? childOffset = childParentData.offset;
    if (childOffset == null) {
      return;
    }
    context.paintChild(child, childOffset + offset);
    child = childAfter(child);
  }
}