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