CircularParticle class
Single Circular Particle
Constructors
- CircularParticle({required double radius, 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
- position → Offset
-
no setterinherited
- radius → double
-
Define the radius of the circular particle
final
- 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
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