addParticle method
void
addParticle(})
Used to add particles in your component.
Implementation
void addParticle(
Particle particle, {
Vector2? position,
Vector2? size,
Vector2? scale,
double? angle,
Anchor? anchor,
int? priority,
}) {
add(
ParticleSystemComponent(
particle: particle,
position: position,
size: size,
scale: scale,
angle: angle,
anchor: anchor,
priority: priority,
),
);
}