ParticleEffect mixin

Mixin applications

Properties

animationSpeed double
Animation speed multiplier. Default is 1.0 (one full cycle per second). Override this getter to control animation speed.
no setter
hasAnimation bool
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAnimatedOffset(Particle particle, double animationProgress) Offset
Optional: Override this method for continuous animation effects. Returns an animated offset for the particle based on elapsed time. If null is returned, the static scatterOffset will be used instead.
getAnimatedOpacity(Particle particle, double animationProgress) double?
Optional: Override to provide dynamic opacity for particles. Returns opacity multiplier 0.0 - 1.0 for effects like depth-based fading. Default returns null (use particle's original color opacity).
initialize({required Size container, required Color? reader(int x, int y)}) List<Particle>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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