TickConfettiSpawnOptions constructor

const TickConfettiSpawnOptions({
  1. double angle = 90,
  2. double spread = 45,
  3. double startVelocity = 45,
  4. double decay = 0.9,
  5. double gravity = 1,
  6. double drift = 0,
  7. bool flat = false,
  8. double scalar = 1,
  9. int ticks = 200,
})

Creates tick-style options (degrees for angle / spread, pixels for velocity).

Implementation

const TickConfettiSpawnOptions({
  this.angle = 90,
  this.spread = 45,
  this.startVelocity = 45,
  this.decay = 0.9,
  this.gravity = 1,
  this.drift = 0,
  this.flat = false,
  this.scalar = 1,
  this.ticks = 200,
})  : assert(decay >= 0 && decay <= 1),
      assert(ticks > 0);