ArrowParticle class

An arrow-shaped particle painter.

Renders particles as directional arrows that rotate to follow the path tangent, providing clear visual indication of flow direction.

Example:

ParticleEffect(
  particlePainter: ArrowParticle(
    length: 12.0,
    width: 8.0,
  ),
  particleCount: 3,
  speed: 1,
)
Implemented types

Constructors

ArrowParticle({double length = 10.0, double width = 6.0, Color? color})
Creates an arrow particle painter.
const

Properties

color Color?
Optional color override for the particle (null = use connection color)
final
hashCode int
The hash code for this object.
no setterinherited
length double
The length of the arrow in pixels
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
The size of the particle. Used for layout calculations and bounds checking.
no setteroverride
width double
The width of the arrow head in pixels
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas, Offset position, Tangent tangent, Paint basePaint) → void
Paints the particle at the given position along the connection path.
override
toString() String
A string representation of this object.
inherited

Operators

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