BlobParticle class

One piece of confetti thrown out by the success burst.

Constructors

BlobParticle({required double dx, required double dy, required double size, required double delay, required bool isCircle, required Color color, bool isDiamond = false, double spin = 0})
Creates a confetti piece.

Properties

color Color
Fill color.
final
delay double
Fraction of the burst spent waiting before this piece launches.
final
dx double
Horizontal travel at full progress.
final
dy double
Vertical travel at full progress.
final
hashCode int
The hash code for this object.
no setterinherited
isCircle bool
Whether the piece is drawn as a dot.
final
isDiamond bool
Whether a square piece is rotated 45° at rest.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
Edge length (squares/diamonds) or diameter (circles).
final
spin double
Turns the piece makes over its lifetime.
final

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