copyWith method

LiquidStyle copyWith({
  1. double? thickness,
  2. double? intensity,
  3. double? insideGlowIntensity,
  4. double? refractionIntensity,
  5. Alignment? lightSource,
  6. bool? withInnerHighlight,
  7. bool? withOuterGlow,
  8. Color? baseColor,
  9. double? blurStrength,
})

Helper to copy with changes

Implementation

LiquidStyle copyWith({
  double? thickness,
  double? intensity,
  double? insideGlowIntensity,
  double? refractionIntensity,
  Alignment? lightSource,
  bool? withInnerHighlight,
  bool? withOuterGlow,
  Color? baseColor,
  double? blurStrength,
}) {
  return LiquidStyle(
    thickness: thickness ?? this.thickness,
    intensity: intensity ?? this.intensity,
    insideGlowIntensity: insideGlowIntensity ?? this.insideGlowIntensity,
    refractionIntensity: refractionIntensity ?? this.refractionIntensity,
    lightSource: lightSource ?? this.lightSource,
    withInnerHighlight: withInnerHighlight ?? this.withInnerHighlight,
    withOuterGlow: withOuterGlow ?? this.withOuterGlow,
    baseColor: baseColor ?? this.baseColor,
    blurStrength: blurStrength ?? this.blurStrength,
  );
}