ClipComponent constructor
ClipComponent({
- required ShapeBuilder builder,
- Vector2? position,
- Vector2? size,
- Vector2? scale,
- double? angle,
- Anchor? anchor,
- Iterable<
Component> ? children, - int? priority,
- ComponentKey? key,
A component that will clip its content.
Clips the canvas based its shape and size.
Implementation
ClipComponent({
required ShapeBuilder builder,
super.position,
super.size,
super.scale,
super.angle,
super.anchor,
super.children,
super.priority,
super.key,
}) : _builder = builder;