CustomPathParticleRenderer class
Renders each particle as an arbitrary developer-provided Path.
The path is drawn centered at Particle.position and scaled to Particle.currentSize. Supply a path normalized to the unit square (approximately -0.5..0.5 on both axes) for predictable scaling.
- Inheritance
-
- Object
- ParticleRenderer
- CustomPathParticleRenderer
Constructors
- CustomPathParticleRenderer({required Path path})
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
Canvas canvas, Particle particle) → void -
Draw a single
particleontocanvas.override -
renderBatch(
Canvas canvas, List< Particle> particles) → void -
Draw all
particlesontocanvas.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited