Scatter class

Mixed-in types

Constructors

Scatter({double maxDistance = 100})
const

Properties

animationSpeed double
Animation speed multiplier. Default is 1.0 (one full cycle per second). Override this getter to control animation speed.
no setterinherited
hasAnimation bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
maxDistance double
final
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.
inherited
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).
inherited
initialize({required Size container, required Color? reader(int x, int y)}) List<ScatterParticle>
override
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