updateWorldTransform method

void updateWorldTransform()

Implementation

void updateWorldTransform() {
  _renderOpacity = _opacity;

  if (parent != null) {
    _renderCollapsed = _isCollapsedVisibility || parent!._renderCollapsed;
    _renderOpacity *= parent!.childOpacity;
    if (!_overrideWorldTransform) {
      Mat2D.multiply(_worldTransform, parent!._worldTransform, _transform);
    }
  } else {
    Mat2D.copy(_worldTransform, _transform);
  }
}