ParticleShape enum
The visual shape rendered for each confetti particle.
Presets pick a shape mix; the painter maps each value to a canvas primitive.
All shapes are drawn centered on (0, 0) in the particle's local coordinate space — the canvas is translated to the particle's world position before drawing.
Values
- star → const ParticleShape
-
Five-pointed star drawn with alternating outer/inner radius vertices.
- paper → const ParticleShape
-
Axis-aligned rectangle for default “paper” strips (matrix-path preset draws).
- ribbon → const ParticleShape
-
Wide, flat rectangle that tumbles like a paper streamer.
- emoji → const ParticleShape
-
A single unicode emoji character (e.g. 🎉). The emoji string is stored on the simulation particle when this shape is used.
- circle → const ParticleShape
-
Filled circle / disc. The fastest shape to render.
- square → const ParticleShape
-
Filled square. Tumbles like a confetti square.
- triangle → const ParticleShape
-
Filled equilateral triangle pointing upward.
- pentagon → const ParticleShape
-
Regular pentagon inscribed in the particle’s bounding circle.
- hexagon → const ParticleShape
-
Regular hexagon inscribed in the particle’s bounding circle.
- ring → const ParticleShape
-
Ring / hollow disc — stroked circle with transparent interior.
- lightning → const ParticleShape
-
Zigzag lightning bolt silhouette.
- crescent → const ParticleShape
-
Crescent moon (two overlapping circles, even-odd fill).
- arrow → const ParticleShape
-
Upward-pointing arrowhead with stem.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Constants
-
values
→ const List<
ParticleShape> - A constant List of the values in this enum, in order of their declaration.