RenderObject constructor

RenderObject()

Initializes internal fields for subclasses.

Implementation

RenderObject() {
  if (kFlutterMemoryAllocationsEnabled) {
    FlutterMemoryAllocations.instance.dispatchObjectCreated(
      library: _flutterRenderingLibrary,
      className: '$RenderObject',
      object: this,
    );
  }
  _needsCompositing = isRepaintBoundary || alwaysNeedsCompositing;
  _wasRepaintBoundary = isRepaintBoundary;
}