copyWith method

LightingConfig copyWith({
  1. double? radius,
  2. Color? color,
  3. bool? withPulse,
  4. bool? useComponentAngle,
  5. double? pulseVariation,
  6. double? pulseSpeed,
  7. Curve? pulseCurve,
  8. double? blurBorder,
  9. LightingType? type,
})

Implementation

LightingConfig copyWith({
  double? radius,
  Color? color,
  bool? withPulse,
  bool? useComponentAngle,
  double? pulseVariation,
  double? pulseSpeed,
  Curve? pulseCurve,
  double? blurBorder,
  LightingType? type,
}) {
  return LightingConfig(
    radius: radius ?? this.radius,
    color: color ?? this.color,
    withPulse: withPulse ?? this.withPulse,
    useComponentAngle: useComponentAngle ?? this.useComponentAngle,
    pulseVariation: pulseVariation ?? this.pulseVariation,
    pulseSpeed: pulseSpeed ?? this.pulseSpeed,
    pulseCurve: pulseCurve ?? this.pulseCurve,
    blurBorder: blurBorder ?? this.blurBorder,
    type: type ?? this.type,
  );
}