CircleComponent constructor
CircleComponent({})
With this constructor you can create your CircleComponent from a radius and a position. It will also calculate the bounding rectangle size for the CircleComponent.
Implementation
CircleComponent({
double? radius,
Vector2? position,
double? angle,
Anchor? anchor,
int? priority,
Paint? paint,
}) : super(
position: position,
size: Vector2.all((radius ?? 0) * 2),
angle: angle,
anchor: anchor,
priority: priority,
paint: paint,
);