RenderObject constructor Null safety

RenderObject()

Initializes internal fields for subclasses.

Implementation

RenderObject() {
  _needsCompositing = isRepaintBoundary || alwaysNeedsCompositing;
  _wasRepaintBoundary = isRepaintBoundary;
}