copyWith method

BackgroundParams copyWith({
  1. bool? animatedBlur,
  2. double? sigmaX,
  3. double? sigmaY,
  4. bool? animatedBackgroundColor,
  5. Color? backgroundColor,
})

Implementation

BackgroundParams copyWith({
  bool? animatedBlur,
  double? sigmaX,
  double? sigmaY,
  bool? animatedBackgroundColor,
  Color? backgroundColor,
}) {
  return BackgroundParams(
    animatedBlur: animatedBlur ?? this.animatedBlur,
    sigmaX: sigmaX ?? this.sigmaX,
    sigmaY: sigmaY ?? this.sigmaY,
    animatedBackgroundColor:
        animatedBackgroundColor ?? this.animatedBackgroundColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
  );
}