repaintCompositedChild method

void repaintCompositedChild (
  1. RenderObject child,
  2. {bool debugAlsoPaintedParent: false}
)

Repaint the given render object.

The render object must be attached to a PipelineOwner, must have a composited layer, and must be in need of painting. The render object's layer, if any, is re-used, along with any layers in the subtree that don't need to be repainted.

See also:

Implementation

static void repaintCompositedChild(RenderObject child, { bool debugAlsoPaintedParent = false }) {
  assert(child._needsPaint);
  _repaintCompositedChild(
    child,
    debugAlsoPaintedParent: debugAlsoPaintedParent,
  );
}