willAttachRenderer method

  1. @override
void willAttachRenderer()

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() {
  super.willAttachRenderer();

  _animationRenderObject = _createFlareRenderObject();
  if (_animationRenderObject != null) {
    addChild(_animationRenderObject!);
  }
}