copyWith method

ModernStyleOptions copyWith({
  1. BoxDecoration? containerDecoration,
  2. BoxDecoration? hoverDecoration,
  3. BoxDecoration? activeDecoration,
  4. EdgeInsetsGeometry? padding,
  5. EdgeInsetsGeometry? margin,
  6. bool? glowEnabled,
  7. double? glowIntensity,
  8. Color? glowColor,
  9. bool? neumorphicEnabled,
  10. int? neumorphicDepth,
  11. bool? pulseBorderEnabled,
  12. Color? pulseBorderColor,
  13. bool? showSkeleton,
  14. BorderRadius? borderRadius,
  15. Border? border,
  16. Color? backgroundColor,
  17. Gradient? backgroundGradient,
  18. List<BoxShadow>? shadows,
  19. Duration? animationDuration,
  20. Curve? animationCurve,
  21. bool? animationsEnabled,
  22. double? disabledOpacity,
  23. Matrix4? transform,
  24. Clip? clipBehavior,
  25. Widget overlayBuilder(
    1. BuildContext context,
    2. Widget child
    )?,
  26. Widget foregroundBuilder(
    1. BuildContext context
    )?,
  27. Widget backgroundBuilder(
    1. BuildContext context
    )?,
  28. BoxConstraints? constraints,
  29. double? minHeight,
  30. double? minWidth,
  31. double? maxHeight,
  32. double? maxWidth,
  33. double? height,
  34. double? width,
  35. AlignmentGeometry? alignment,
  36. bool? adaptiveStyling,
  37. Brightness? brightnessOverride,
  38. ColorFilter? colorFilter,
  39. double? blurAmount,
  40. bool? backdropBlurEnabled,
  41. BlendMode? blendMode,
})

Creates a copy with updated values.

Implementation

ModernStyleOptions copyWith({
  BoxDecoration? containerDecoration,
  BoxDecoration? hoverDecoration,
  BoxDecoration? activeDecoration,
  EdgeInsetsGeometry? padding,
  EdgeInsetsGeometry? margin,
  bool? glowEnabled,
  double? glowIntensity,
  Color? glowColor,
  bool? neumorphicEnabled,
  int? neumorphicDepth,
  bool? pulseBorderEnabled,
  Color? pulseBorderColor,
  bool? showSkeleton,
  BorderRadius? borderRadius,
  Border? border,
  Color? backgroundColor,
  Gradient? backgroundGradient,
  List<BoxShadow>? shadows,
  Duration? animationDuration,
  Curve? animationCurve,
  bool? animationsEnabled,
  double? disabledOpacity,
  Matrix4? transform,
  Clip? clipBehavior,
  Widget Function(BuildContext context, Widget child)? overlayBuilder,
  Widget Function(BuildContext context)? foregroundBuilder,
  Widget Function(BuildContext context)? backgroundBuilder,
  BoxConstraints? constraints,
  double? minHeight,
  double? minWidth,
  double? maxHeight,
  double? maxWidth,
  double? height,
  double? width,
  AlignmentGeometry? alignment,
  bool? adaptiveStyling,
  Brightness? brightnessOverride,
  ColorFilter? colorFilter,
  double? blurAmount,
  bool? backdropBlurEnabled,
  BlendMode? blendMode,
}) {
  return ModernStyleOptions(
    containerDecoration: containerDecoration ?? this.containerDecoration,
    hoverDecoration: hoverDecoration ?? this.hoverDecoration,
    activeDecoration: activeDecoration ?? this.activeDecoration,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    glowEnabled: glowEnabled ?? this.glowEnabled,
    glowIntensity: glowIntensity ?? this.glowIntensity,
    glowColor: glowColor ?? this.glowColor,
    neumorphicEnabled: neumorphicEnabled ?? this.neumorphicEnabled,
    neumorphicDepth: neumorphicDepth ?? this.neumorphicDepth,
    pulseBorderEnabled: pulseBorderEnabled ?? this.pulseBorderEnabled,
    pulseBorderColor: pulseBorderColor ?? this.pulseBorderColor,
    showSkeleton: showSkeleton ?? this.showSkeleton,
    borderRadius: borderRadius ?? this.borderRadius,
    border: border ?? this.border,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    backgroundGradient: backgroundGradient ?? this.backgroundGradient,
    shadows: shadows ?? this.shadows,
    animationDuration: animationDuration ?? this.animationDuration,
    animationCurve: animationCurve ?? this.animationCurve,
    animationsEnabled: animationsEnabled ?? this.animationsEnabled,
    disabledOpacity: disabledOpacity ?? this.disabledOpacity,
    transform: transform ?? this.transform,
    clipBehavior: clipBehavior ?? this.clipBehavior,
    overlayBuilder: overlayBuilder ?? this.overlayBuilder,
    foregroundBuilder: foregroundBuilder ?? this.foregroundBuilder,
    backgroundBuilder: backgroundBuilder ?? this.backgroundBuilder,
    constraints: constraints ?? this.constraints,
    minHeight: minHeight ?? this.minHeight,
    minWidth: minWidth ?? this.minWidth,
    maxHeight: maxHeight ?? this.maxHeight,
    maxWidth: maxWidth ?? this.maxWidth,
    height: height ?? this.height,
    width: width ?? this.width,
    alignment: alignment ?? this.alignment,
    adaptiveStyling: adaptiveStyling ?? this.adaptiveStyling,
    brightnessOverride: brightnessOverride ?? this.brightnessOverride,
    colorFilter: colorFilter ?? this.colorFilter,
    blurAmount: blurAmount ?? this.blurAmount,
    backdropBlurEnabled: backdropBlurEnabled ?? this.backdropBlurEnabled,
    blendMode: blendMode ?? this.blendMode,
  );
}