RectangleComponent constructor
RectangleComponent({})
Implementation
RectangleComponent({
super.position,
super.size,
super.scale,
super.angle,
super.anchor,
super.children,
super.priority,
super.paint,
super.paintLayers,
super.key,
}) : super(sizeToVertices(size ?? Vector2.zero(), anchor)) {
size.addListener(
() => refreshVertices(
newVertices: sizeToVertices(size, anchor),
shrinkToBoundsOverride: false,
),
);
}