ClipComponent.rectangle constructor
ClipComponent.rectangle({})
Clips the canvas in the form of a rectangle based on its size.
Implementation
ClipComponent.rectangle({
Vector2? position,
Vector2? size,
Vector2? scale,
double? angle,
Anchor? anchor,
Iterable<Component>? children,
int? priority,
ComponentKey? key,
}) : this(
builder: (size) => Rectangle.fromRect(size.toRect()),
position: position,
size: size,
scale: scale,
angle: angle,
anchor: anchor,
children: children,
priority: priority,
key: key,
);