copyWith method
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,
);
}