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

Constructors

CustomPathParticleRenderer({required Path path})

Properties

hashCode int
The hash code for this object.
no setterinherited
path Path
The path to draw (normalized to roughly -0.5, 0.5 bounds).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Canvas canvas, Particle particle) → void
Draw a single particle onto canvas.
override
renderBatch(Canvas canvas, List<Particle> particles) → void
Draw all particles onto canvas.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited