updatePosition method

void updatePosition(
  1. Vector2Rect position
)

Implementation

void updatePosition(Vector2Rect position) {
  shape.position = Vector2(
    position.position.x + (align?.x ?? 0.0),
    position.position.y + (align?.y ?? 0.0),
  );
}