Particle class abstract

Single Particle Model

Implementers

Constructors

Particle({required Color color, required Offset velocity, double rotationSpeed = 0})

Properties

color Color
Define the color of a single particle.
final
currentVelocity Offset
no setter
hashCode int
The hash code for this object.
no setterinherited
position Offset
no setter
rotation double
no setter
rotationSpeed double
Define the rotation speed of a single particle.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updatePosition Offset
no getter
updateRotation double
no getter
updateVelocity Offset
no getter
velocity Offset
Define the direction and speed of a single particle.
final

Methods

drawParticle(Canvas canvas, Size size) → void
Allow subclasses to define their own draw method
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas, Size size) → void
rotate(Canvas canvas, double cx, double cy) → void
toString() String
A string representation of this object.
inherited

Operators

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