updateShape method

void updateShape()

Implementation

void updateShape() {
  if (_shape != null) {
    _shape!.removePath(this);
  }
  ActorNode? possibleShape = parent;
  while (possibleShape != null && possibleShape is! ActorShape) {
    possibleShape = possibleShape.parent;
  }
  if (possibleShape != null) {
    _shape = possibleShape as ActorShape;
    _shape!.addPath(this);
  } else {
    _shape = null;
  }
  _isRootPath = _shape == parent;
}