willAttachRenderer method

  1. @override
void willAttachRenderer()
override

The renderObject will be / has been insert into parent. You can apply properties to renderObject.

This method should not do anything to update the children of the render object.

Implementation

@override
void willAttachRenderer() {
  if (enableWebFProfileTracking) {
    WebFProfiler.instance.startTrackUICommandStep('$this.willAttachRenderer');
  }
  super.willAttachRenderer();
  // Init render box model.
  if (renderStyle.display != CSSDisplay.none) {
    createRenderer();
  }
  if (enableWebFProfileTracking) {
    WebFProfiler.instance.finishTrackUICommandStep();
  }
}