FireworksController class

Constructors

FireworksController({List<Color>? colors, Color? rocketColor, double minExplosionDuration = 1.0, double maxExplosionDuration = 3.0, int minParticleCount = 100, int maxParticleCount = 250, double fadeOutDuration = 0.3})

Properties

colors List<Color>
List of colors used for the fireworks explosions.
final
fadeOutDuration double
Duration for particles to fade out, in seconds.
final
flameGame FireworksGame
Reference to the Flame game instance.
latefinal
hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
Public read-only getter to check if the controller is disposed.
no setter
maxExplosionDuration double
Maximum duration for the explosion effect, in seconds.
final
maxParticleCount int
Maximum number of particles in the explosion.
final
minExplosionDuration double
Minimum duration for the explosion effect, in seconds.
final
minParticleCount int
Minimum number of particles in the explosion.
final
rocketColor Color?
Color of the rocket trail (default is QTColors.pinkMedium).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
fireMultipleRockets({List<Color>? fireworksColors, int minRockets = 6, int maxRockets = 14, Duration launchWindow = const Duration(seconds: 2)}) → void
fireSingleRocket({Color? color, Color? rocketColor}) → void
launchRocket() → void
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