copyWith method
- int? particleCount,
- List<
Color> ? colors, - List<
ParticleShape> ? shapeMix, - double? gravity,
- double? speedMultiplier,
- double? lifetimeMultiplier,
- double? burstDirectionDegrees,
- double? burstSpreadDegrees,
- bool? useTickBasedPhysics,
- TickConfettiSpawnOptions? tickSpawnOptions,
- BlendMode? particleBlendMode,
Returns a copy with the given fields replaced.
Implementation
ConfettiCustomization copyWith({
int? particleCount,
List<Color>? colors,
List<ParticleShape>? shapeMix,
double? gravity,
double? speedMultiplier,
double? lifetimeMultiplier,
double? burstDirectionDegrees,
double? burstSpreadDegrees,
bool? useTickBasedPhysics,
TickConfettiSpawnOptions? tickSpawnOptions,
BlendMode? particleBlendMode,
}) {
return ConfettiCustomization(
particleCount: particleCount ?? this.particleCount,
colors: colors ?? this.colors,
shapeMix: shapeMix ?? this.shapeMix,
gravity: gravity ?? this.gravity,
speedMultiplier: speedMultiplier ?? this.speedMultiplier,
lifetimeMultiplier: lifetimeMultiplier ?? this.lifetimeMultiplier,
burstDirectionDegrees:
burstDirectionDegrees ?? this.burstDirectionDegrees,
burstSpreadDegrees: burstSpreadDegrees ?? this.burstSpreadDegrees,
useTickBasedPhysics: useTickBasedPhysics ?? this.useTickBasedPhysics,
tickSpawnOptions: tickSpawnOptions ?? this.tickSpawnOptions,
particleBlendMode: particleBlendMode ?? this.particleBlendMode,
);
}