OvoidalParticle class

Single Ovoidal Particle

Inheritance

Constructors

OvoidalParticle({required double height, required double width, required Color color, required Offset velocity, double rotationSpeed = 0})

Properties

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

Methods

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

Operators

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