TickConfettiSpawnOptions class

Spawn parameters for tick mode — angle / spread cone, velocity decay, gravity, drift, tick lifespan, and scalar.

Used when ConfettiCustomization.useTickBasedPhysics is true.

Annotations

Constructors

TickConfettiSpawnOptions({double angle = 90, double spread = 45, double startVelocity = 45, double decay = 0.9, double gravity = 1, double drift = 0, bool flat = false, double scalar = 1, int ticks = 200})
Creates tick-style options (degrees for angle / spread, pixels for velocity).
const

Properties

angle double
Launch bearing in degrees (90 = straight up in package coordinates).
final
decay double
Per-tick velocity multiplier (01); slows particles over time.
final
drift double
Horizontal drift per tick (negative = left, positive = right).
final
flat bool
When true, disables wobble / tilt (flat confetti).
final
gravity double
Downward pull per tick (physics applies a ×3 scale internally).
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scalar double
Visual scale for shapes (stars use inner/outer radius ∝ scalar).
final
spread double
Cone half-width in degrees (full width is spread).
final
startVelocity double
Initial speed scale in pixels for tick spawn.
final
ticks int
Simulation length in ticks (one tick per animation frame when using this engine).
final

Methods

copyWith({double? angle, double? spread, double? startVelocity, double? decay, double? gravity, double? drift, bool? flat, double? scalar, int? ticks}) TickConfettiSpawnOptions
Returns a copy with any non-null field replaced.
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