debugInstrumentRepaintCompositedChild static method

void debugInstrumentRepaintCompositedChild(
  1. RenderObject child,
  2. {bool debugAlsoPaintedParent = false,
  3. required PaintingContext customContext}
)

In debug mode, repaint the given render object using a custom painting context that can record the results of the painting operation in addition to performing the regular paint of the child.

See also:

Implementation

static void debugInstrumentRepaintCompositedChild(
  RenderObject child, {
  bool debugAlsoPaintedParent = false,
  required PaintingContext customContext,
}) {
  assert(() {
    _repaintCompositedChild(
      child,
      debugAlsoPaintedParent: debugAlsoPaintedParent,
      childContext: customContext,
    );
    return true;
  }());
}