defaultPaint method

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

Paints each child by walking the child list forwards.

See also:

  • defaultHitTestChildren, which implements hit-testing of the children in a manner appropriate for this painting strategy.

Implementation

@override
void defaultPaint(PaintingContext context, Offset offset) {
  for (final child in _painted()) {
    context.paintChild(child, (child.parentData! as FlexParentData).offset + offset);
  }
}