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