RectangleShape constructor
Implementation
RectangleShape(Size size, {Vector2? position})
: _rect = Rect.fromLTWH(
position?.x ?? 0,
position?.y ?? 0,
size.width,
size.height,
),
super(position ?? Vector2.zero()) {
_updateExtremities(this.position);
}