AnimatedParticle class

The AnimatedParticle class represents a particle with animation properties.

The AnimatedParticle class combines a Particle with animation-specific properties, such as animation duration, distance, angle, fading in/out effects, scaling, and more.

Constructors

AnimatedParticle({required Particle particle, required PathTransformation pathTransformation, required double startTime, required int animationDuration, required Curve distanceCurve, required double fadeInLimit, required Curve fadeInCurve, required double fadeOutThreshold, required Curve fadeOutCurve, required Tween<double> scaleRange, required Curve scaleCurve, required Trail trail})

Properties

animationDuration int
The duration of the animation for this particle in milliseconds.
final
distanceCurve Curve
The curve used to control the distance animation progress.
final
fadeInCurve Curve
The curve used to control the fade-in animation progress.
final
fadeInLimit double
The limit at which the particle starts to fade in during the animation.
final
fadeOutCurve Curve
The curve used to control the fade-out animation progress.
final
fadeOutThreshold double
The threshold at which the particle starts to fade out during the animation.
final
hashCode int
The hash code for this object.
no setterinherited
particle Particle
The Particle associated with this animated particle.
final
pathTransformation PathTransformation
The PathTransformation that will follow particle upon emission. Default: StraightPathTransformation
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleCurve Curve
The curve used to control the scaling animation progress.
final
scaleRange Tween<double>
The range of scaling applied to the particle during the animation.
final
startTime double
The start time of the animation for this particle in milliseconds.
final
trail Trail
final

Methods

drawExtra(Canvas canvas) → void
Draw extra shapes if any
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAnimationUpdate(double progress) → dynamic
Called when the animation updates to apply transformations and positioning to the particle.
onSurfaceSizeChanged(Size oldSize, Size newSize) → dynamic
Called when the surface size changes to adjust the particle's position if needed.
toString() String
A string representation of this object.
inherited

Operators

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