copyWith method
NeumorphismStyle
copyWith({
- Color? color,
- NeumorphismBorder? border,
- NeumorphismBoxShape? boxShape,
- Color? shadowLightColor,
- Color? shadowDarkColor,
- Color? shadowLightColorEmboss,
- Color? shadowDarkColorEmboss,
- double? depth,
- double? intensity,
- double? surfaceIntensity,
- LightSource? lightSource,
- bool? disableDepth,
- double? borderRadius,
- bool? oppositeShadowLightSource,
- NeumorphismShape? shape,
Implementation
NeumorphismStyle copyWith({
Color? color,
NeumorphismBorder? border,
NeumorphismBoxShape? boxShape,
Color? shadowLightColor,
Color? shadowDarkColor,
Color? shadowLightColorEmboss,
Color? shadowDarkColorEmboss,
double? depth,
double? intensity,
double? surfaceIntensity,
LightSource? lightSource,
bool? disableDepth,
double? borderRadius,
bool? oppositeShadowLightSource,
NeumorphismShape? shape,
}) {
return NeumorphismStyle._withTheme(
color: color ?? this.color,
border: border ?? this.border,
boxShape: boxShape ?? this.boxShape,
shadowDarkColor: shadowDarkColor ?? this.shadowDarkColor,
shadowLightColor: shadowLightColor ?? this.shadowLightColor,
shadowDarkColorEmboss:
shadowDarkColorEmboss ?? this.shadowDarkColorEmboss,
shadowLightColorEmboss:
shadowLightColorEmboss ?? this.shadowLightColorEmboss,
depth: depth ?? this.depth,
theme: theme,
intensity: intensity ?? this.intensity,
surfaceIntensity: surfaceIntensity ?? this.surfaceIntensity,
disableDepth: disableDepth ?? this.disableDepth,
lightSource: lightSource ?? this.lightSource,
oppositeShadowLightSource:
oppositeShadowLightSource ?? this.oppositeShadowLightSource,
shape: shape ?? this.shape,
);
}