copyWith method
- 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 overlayBuilder(
- BuildContext context,
- Widget child
- Widget foregroundBuilder(
- BuildContext context
- Widget backgroundBuilder(
- BuildContext context
- 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,
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,
);
}