RectangleComponent.square constructor
RectangleComponent.square({})
Implementation
RectangleComponent.square({
Vector2? position,
double? size,
double? angle,
Anchor? anchor,
int? priority,
Paint? paint,
}) : this(
position: position,
size: size != null ? Vector2.all(size) : null,
angle: angle,
anchor: anchor,
priority: priority,
paint: paint,
);