performPaint method

  1. @override
void performPaint(
  1. CellBuffer buffer,
  2. CellOffset offset
)
override

Paints this render object's cells into buffer at offset.

A container paints each presented child at offset + childOffsetOf(child) into the same buffer — or into a scratch buffer of its own that it then composites (a viewport, a clip, an effect), in which case the children paint at scratch-local offsets and the composite places the result. Nothing about screen position is threaded through paint: a render object that needs to know where it is asks screenGeometry.

Implementation

@override
void performPaint(CellBuffer buffer, CellOffset offset) {
  final c = _child;
  if (c == null) return;
  final childOffset = CellOffset(
    offset.col + _padding.left,
    offset.row + _padding.top,
  );
  c.paint(buffer, childOffset);
}