Emitter class

Constructors

Emitter({required Offset startPosition, double startPositionRadius = 0, int clusterSize = 1, Duration delay = const Duration(milliseconds: 0), bool recycles = false})
const

Properties

clusterSize int
The number of particles that will emit in a single 'cluster'.
final
delay Duration
The time between emissions.
final
hashCode int
The hash code for this object.
no setterinherited
recycles bool
Define whether or not the emitter will re-use particles that exit the boundary, creating an infinite loop from the emitter.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startPosition Offset
Emission position.
final
startPositionRadius double
Maximum distance from startPosition which a particle may spawn.
final

Methods

emit(List<Particle> particles, List<Particle> render) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recycle(Particle particle) → void
toString() String
A string representation of this object.
inherited

Operators

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