copyWith method

DesktopSplashConfig copyWith({
  1. int? windowWidth,
  2. int? windowHeight,
  3. String? windowTitle,
  4. String? windowClass,
  5. Color? windowColor,
  6. String? imagePath,
  7. int? imageWidth,
  8. int? imageHeight,
  9. double? imageBorderRadius,
  10. double? imageBlurRadius,
  11. bool? imageScaling,
  12. Color? backgroundColor,
  13. int? backgroundWidth,
  14. int? backgroundHeight,
  15. double? backgroundBorderRadius,
  16. bool? withAnimation,
})

Implementation

DesktopSplashConfig copyWith({
  int? windowWidth,
  int? windowHeight,
  String? windowTitle,
  String? windowClass,
  Color? windowColor,
  String? imagePath,
  int? imageWidth,
  int? imageHeight,
  double? imageBorderRadius,
  double? imageBlurRadius,
  bool? imageScaling,
  Color? backgroundColor,
  int? backgroundWidth,
  int? backgroundHeight,
  double? backgroundBorderRadius,
  bool? withAnimation,
}) {
  return DesktopSplashConfig(
    windowWidth: windowWidth ?? this.windowWidth,
    windowHeight: windowHeight ?? this.windowHeight,
    windowTitle: windowTitle ?? this.windowTitle,
    windowClass: windowClass ?? this.windowClass,
    windowColor: windowColor ?? this.windowColor,
    imagePath: imagePath ?? this.imagePath,
    imageWidth: imageWidth ?? this.imageWidth,
    imageHeight: imageHeight ?? this.imageHeight,
    imageBorderRadius: imageBorderRadius ?? this.imageBorderRadius,
    imageScaling: imageScaling ?? this.imageScaling,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    backgroundWidth: backgroundWidth ?? this.backgroundWidth,
    backgroundHeight: backgroundHeight ?? this.backgroundHeight,
    backgroundBorderRadius:
        backgroundBorderRadius ?? this.backgroundBorderRadius,
    withAnimation: withAnimation ?? this.withAnimation,
    imageBlurRadius: imageBlurRadius ?? this.imageBlurRadius,
  );
}