copyWith method

TickConfettiSpawnOptions copyWith({
  1. double? angle,
  2. double? spread,
  3. double? startVelocity,
  4. double? decay,
  5. double? gravity,
  6. double? drift,
  7. bool? flat,
  8. double? scalar,
  9. int? ticks,
})

Returns a copy with any non-null field replaced.

Implementation

TickConfettiSpawnOptions copyWith({
  double? angle,
  double? spread,
  double? startVelocity,
  double? decay,
  double? gravity,
  double? drift,
  bool? flat,
  double? scalar,
  int? ticks,
}) {
  return TickConfettiSpawnOptions(
    angle: angle ?? this.angle,
    spread: spread ?? this.spread,
    startVelocity: startVelocity ?? this.startVelocity,
    decay: decay ?? this.decay,
    gravity: gravity ?? this.gravity,
    drift: drift ?? this.drift,
    flat: flat ?? this.flat,
    scalar: scalar ?? this.scalar,
    ticks: ticks ?? this.ticks,
  );
}