Particle class

Constructors

Particle({double x = 0, double y = 0, double opacity = 0, double vx = 0, double vy = 0, double dist = 0, double distFrac = 0, double size = 0, double life = 0, double lifeLeft = 0, bool isFilled = false, bool? isFlowing = false, Color color = Colors.black, int distribution = 0, ParticleDrawShape shape = ParticleDrawShape.circle})

Properties

color Color
The color of the particle.
getter/setter pair
dist double
The distance from canvas center.
getter/setter pair
distFrac double
The distance from canvas center in percentage (0-1).
getter/setter pair
distribution int
The particle's distribution value.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isFilled bool
If the particle is filled or only stroked.
getter/setter pair
isFlowing bool?
If the particle should have "speed marks".
getter/setter pair
life double
The life length of the particle (0-1).
getter/setter pair
lifeLeft double
The life remaining of the particle (0-1).
getter/setter pair
opacity double
The particle's opacity.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape ParticleDrawShape
getter/setter pair
size double
The particle's size.
getter/setter pair
vx double
Speed vector (horizontally).
getter/setter pair
vy double
Speed vector (vertically).
getter/setter pair
x double
The particle's X-position.
getter/setter pair
y double
The particle's Y-position.
getter/setter pair

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