Trail class sealed
A sealed class representing a trail of particles to be drawn on a canvas.
This class defines the common properties and methods required for a trail. Subclasses should override the draw method to implement their specific drawing logic.
- Implementers
Constructors
- Trail({double trailProgress = 0})
-
Creates a Trail with the given trailProgress.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trailProgress → double
-
The progress of the trail, typically a value between 0 and 1.
To clarify,
trailProgress
means how far we want to go back for the trail to be drawn.final
Methods
-
draw(
Canvas canvas, double currentProgress, AnimatedParticle animatedParticle) → void -
Draws the trail on the
canvas
using the givencurrentProgress
andanimatedParticle
. -
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