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