debugRegisterRepaintBoundaryPaint method

  1. @override
void debugRegisterRepaintBoundaryPaint ({bool includedParent: true, bool includedChild: false })
override

Called, in checked mode, if isRepaintBoundary is true, when either the this render object or its parent attempt to paint.

This can be used to record metrics about whether the node should actually be a repaint boundary.

Implementation

@override
void debugRegisterRepaintBoundaryPaint({ bool includedParent = true, bool includedChild = false }) {
  assert(() {
    if (includedParent && includedChild)
      _debugSymmetricPaintCount += 1;
    else
      _debugAsymmetricPaintCount += 1;
    return true;
  }());
}