Particle class

Representa una partícula individual en el sistema de partículas.

Cada partícula tiene posición, velocidad, tamaño y color únicos. Se mueve continuamente y se regenera cuando sale del área visible. Representa una partícula individual en el sistema de partículas.

Cada partícula tiene posición, velocidad, tamaño y color únicos. Se mueve continuamente y se regenera cuando sale del área visible. Representa una partícula individual en el sistema de partículas.

Cada partícula tiene posición, velocidad, tamaño y color únicos. Se mueve continuamente y se regenera cuando sale del área visible. Representa una partícula individual en el sistema de partículas.

Cada partícula tiene posición, velocidad, tamaño y color únicos. Se mueve continuamente y se regenera cuando sale del área visible.

Constructors

Particle({required List<Color> colors, int heightFactor = 4, double velocityFactor = 1.5, double maxWidth = 800, double maxHeight = 800, double velocityYDirection = 1, double velocityXDirection = 1})
Crea una nueva partícula con parámetros configurables.

Properties

color ↔ Color
getter/setter pair
colors → List<Color>
final
hashCode → int
The hash code for this object.
no setterinherited
heightFactor → int
final
maxHeight → double
final
maxWidth → double
final
position ↔ Offset
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size ↔ double
getter/setter pair
velocity ↔ Offset
getter/setter pair
velocityFactor → double
final
velocityXDirection → double
final
velocityYDirection → double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → dynamic
Reinicia la partícula con valores aleatorios.
toString() → String
A string representation of this object.
inherited
update({bool? y, bool? x}) → dynamic
Lista de colores para las partículas.

Operators

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