updatePosition method

void updatePosition(
  1. Vector2 position
)

Implementation

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