CircleParticle class

A circular particle painter.

Renders particles as simple filled circles, useful for basic flow visualization and data movement indication.

Example:

ParticleEffect(
  particlePainter: CircleParticle(radius: 4.0),
  particleCount: 5,
  speed: 2,
)
Implemented types

Constructors

CircleParticle({double radius = 3.0, Color? color})
Creates a circular 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
radius double
The radius of the circle 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

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