SpriteAnimationParticle class

Inheritance

Constructors

SpriteAnimationParticle({required SpriteAnimation animation, Vector2? size, Paint? overridePaint, double? lifespan, bool alignAnimationTime = true})

Properties

alignAnimationTime bool
final
animation SpriteAnimation
final
hashCode int
The hash code for this object.
no setterinherited
overridePaint Paint?
final
progress double
Getter which should be used by subclasses to get overall progress.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldRemove bool
This method will return true as soon as the particle reaches the end of its lifespan.
no setterinherited
size Vector2?
final

Methods

accelerated({required Vector2 acceleration, Vector2? position, Vector2? speed}) Particle
Wraps this particle with a AcceleratedParticle.
inherited
moving({Vector2? from, required Vector2 to, Curve curve = Curves.linear}) Particle
Wraps this particle with a MovingParticle.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Canvas canvas) → void
Should render this Particle to given Canvas.
override
rotated(double angle) Particle
Rotates this particle to a fixed angle in radians using the RotatingParticle.
inherited
rotating({double from = 0, double to = pi}) Particle
Rotates this particle from a given angle to another one in radians using RotatingParticle.
inherited
scaled(double scale) Particle
Wraps this particle with a ScaledParticle.
inherited
setLifespan(double lifespan) → void
A control method allowing a parent of this Particle to pass down it's lifespan.
override
toString() String
A string representation of this object.
inherited
translated(Vector2 offset) Particle
Wraps this particle with a TranslatedParticle.
inherited
update(double dt) → void
Updates the _timer of this Particle.
override

Operators

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